Class SubnetAssociation
- java.lang.Object
-
- com.azure.resourcemanager.network.models.SubnetAssociation
-
public final class SubnetAssociation extends Object
Subnet and it's custom security rules.
-
-
Constructor Summary
Constructors Constructor Description SubnetAssociation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: Subnet ID.List<SecurityRuleInner>securityRules()Get the securityRules property: Collection of custom security rules.voidvalidate()Validates the instance.SubnetAssociationwithSecurityRules(List<SecurityRuleInner> securityRules)Set the securityRules property: Collection of custom security rules.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Subnet ID.- Returns:
- the id value.
-
securityRules
public List<SecurityRuleInner> securityRules()
Get the securityRules property: Collection of custom security rules.- Returns:
- the securityRules value.
-
withSecurityRules
public SubnetAssociation withSecurityRules(List<SecurityRuleInner> securityRules)
Set the securityRules property: Collection of custom security rules.- Parameters:
securityRules- the securityRules value to set.- Returns:
- the SubnetAssociation object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-