SecurityRuleAssociations Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. SecurityRuleAssociations
- com.
Implements
public final class SecurityRuleAssociations
implements JsonSerializable<SecurityRuleAssociations>
All security rules associated with the network interface.
Constructor Summary
Constructor | Description |
---|---|
SecurityRuleAssociations() |
Creates an instance of Security |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Security |
defaultSecurityRules()
Get the default |
List<Effective |
effectiveSecurityRules()
Get the effective |
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
Network |
networkInterfaceAssociation()
Get the network |
Subnet |
subnetAssociation()
Get the subnet |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Security |
withDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules)
Set the default |
Security |
withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules)
Set the effective |
Security |
withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation)
Set the network |
Security |
withSubnetAssociation(SubnetAssociation subnetAssociation)
Set the subnet |
Methods inherited from java.lang.Object
Constructor Details
SecurityRuleAssociations
public SecurityRuleAssociations()
Creates an instance of SecurityRuleAssociations class.
Method Details
defaultSecurityRules
public List
Get the defaultSecurityRules property: Collection of default security rules of the network security group.
Returns:
effectiveSecurityRules
public List
Get the effectiveSecurityRules property: Collection of effective security rules.
Returns:
fromJson
public static SecurityRuleAssociations fromJson(JsonReader jsonReader)
Reads an instance of SecurityRuleAssociations from the JsonReader.
Parameters:
Returns:
Throws:
networkInterfaceAssociation
public NetworkInterfaceAssociation networkInterfaceAssociation()
Get the networkInterfaceAssociation property: Network interface and it's custom security rules.
Returns:
subnetAssociation
public SubnetAssociation subnetAssociation()
Get the subnetAssociation property: Subnet and it's custom security rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDefaultSecurityRules
public SecurityRuleAssociations withDefaultSecurityRules(List
Set the defaultSecurityRules property: Collection of default security rules of the network security group.
Parameters:
Returns:
withEffectiveSecurityRules
public SecurityRuleAssociations withEffectiveSecurityRules(List
Set the effectiveSecurityRules property: Collection of effective security rules.
Parameters:
Returns:
withNetworkInterfaceAssociation
public SecurityRuleAssociations withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation)
Set the networkInterfaceAssociation property: Network interface and it's custom security rules.
Parameters:
Returns:
withSubnetAssociation
public SecurityRuleAssociations withSubnetAssociation(SubnetAssociation subnetAssociation)
Set the subnetAssociation property: Subnet and it's custom security rules.
Parameters:
Returns:
Applies to
Azure SDK for Java