Class SecurityRuleAssociations
- java.lang.Object
-
- com.azure.resourcemanager.network.models.SecurityRuleAssociations
-
public final class SecurityRuleAssociations extends Object
All security rules associated with the network interface.
-
-
Constructor Summary
Constructors Constructor Description SecurityRuleAssociations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SecurityRuleInner>defaultSecurityRules()Get the defaultSecurityRules property: Collection of default security rules of the network security group.List<EffectiveNetworkSecurityRule>effectiveSecurityRules()Get the effectiveSecurityRules property: Collection of effective security rules.NetworkInterfaceAssociationnetworkInterfaceAssociation()Get the networkInterfaceAssociation property: Network interface and it's custom security rules.SubnetAssociationsubnetAssociation()Get the subnetAssociation property: Subnet and it's custom security rules.voidvalidate()Validates the instance.SecurityRuleAssociationswithDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules)Set the defaultSecurityRules property: Collection of default security rules of the network security group.SecurityRuleAssociationswithEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules)Set the effectiveSecurityRules property: Collection of effective security rules.SecurityRuleAssociationswithNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation)Set the networkInterfaceAssociation property: Network interface and it's custom security rules.SecurityRuleAssociationswithSubnetAssociation(SubnetAssociation subnetAssociation)Set the subnetAssociation property: Subnet and it's custom security rules.
-
-
-
Method Detail
-
networkInterfaceAssociation
public NetworkInterfaceAssociation 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
public SubnetAssociation subnetAssociation()
Get the subnetAssociation property: Subnet and it's custom security rules.- Returns:
- the subnetAssociation value.
-
withSubnetAssociation
public SecurityRuleAssociations withSubnetAssociation(SubnetAssociation subnetAssociation)
Set the subnetAssociation property: Subnet and it's custom security rules.- Parameters:
subnetAssociation- the subnetAssociation value to set.- Returns:
- the SecurityRuleAssociations object itself.
-
defaultSecurityRules
public List<SecurityRuleInner> 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
public List<EffectiveNetworkSecurityRule> 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.
-
-