Class SecurityRuleAssociations
java.lang.Object
com.azure.resourcemanager.network.models.SecurityRuleAssociations
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityRuleAssociations>
public final class SecurityRuleAssociations
extends Object
implements com.azure.json.JsonSerializable<SecurityRuleAssociations>
All security rules associated with the network interface.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityRuleAssociations class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultSecurityRules property: Collection of default security rules of the network security group.Get the effectiveSecurityRules property: Collection of effective security rules.static SecurityRuleAssociationsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityRuleAssociations from the JsonReader.Get the networkInterfaceAssociation property: Network interface and it's custom security rules.Get the subnetAssociation property: Subnet and it's custom security rules.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules) Set the defaultSecurityRules property: Collection of default security rules of the network security group.withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules) Set the effectiveSecurityRules property: Collection of effective security rules.withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation) Set the networkInterfaceAssociation property: Network interface and it's custom security rules.withSubnetAssociation(SubnetAssociation subnetAssociation) Set the subnetAssociation property: Subnet and it's custom security rules.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SecurityRuleAssociations
public SecurityRuleAssociations()Creates an instance of SecurityRuleAssociations class.
-
-
Method Details
-
networkInterfaceAssociation
Get the networkInterfaceAssociation property: Network interface and it's custom security rules.- Returns:
- the networkInterfaceAssociation value.
-
withNetworkInterfaceAssociation
public SecurityRuleAssociations withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation) Set the networkInterfaceAssociation property: Network interface and it's custom security rules.- Parameters:
networkInterfaceAssociation- the networkInterfaceAssociation value to set.- Returns:
- the SecurityRuleAssociations object itself.
-
subnetAssociation
Get the subnetAssociation property: Subnet and it's custom security rules.- Returns:
- the subnetAssociation value.
-
withSubnetAssociation
Set the subnetAssociation property: Subnet and it's custom security rules.- Parameters:
subnetAssociation- the subnetAssociation value to set.- Returns:
- the SecurityRuleAssociations object itself.
-
defaultSecurityRules
Get the defaultSecurityRules property: Collection of default security rules of the network security group.- Returns:
- the defaultSecurityRules value.
-
withDefaultSecurityRules
public SecurityRuleAssociations withDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules) Set the defaultSecurityRules property: Collection of default security rules of the network security group.- Parameters:
defaultSecurityRules- the defaultSecurityRules value to set.- Returns:
- the SecurityRuleAssociations object itself.
-
effectiveSecurityRules
Get the effectiveSecurityRules property: Collection of effective security rules.- Returns:
- the effectiveSecurityRules value.
-
withEffectiveSecurityRules
public SecurityRuleAssociations withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules) Set the effectiveSecurityRules property: Collection of effective security rules.- Parameters:
effectiveSecurityRules- the effectiveSecurityRules value to set.- Returns:
- the SecurityRuleAssociations object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecurityRuleAssociations>- Throws:
IOException
-
fromJson
public static SecurityRuleAssociations fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SecurityRuleAssociations from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SecurityRuleAssociations if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SecurityRuleAssociations.
-