Partager via


SecurityRuleAssociations Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.SecurityRuleAssociations

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 SecurityRuleAssociations class.

Method Summary

Modifier and Type Method and 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.

static SecurityRuleAssociations fromJson(JsonReader jsonReader)

Reads an instance of SecurityRuleAssociations from the JsonReader.

NetworkInterfaceAssociation networkInterfaceAssociation()

Get the networkInterfaceAssociation property: Network interface and it's custom security rules.

SubnetAssociation subnetAssociation()

Get the subnetAssociation property: Subnet and it's custom security rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityRuleAssociations withDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules)

Set the defaultSecurityRules property: Collection of default security rules of the network security group.

SecurityRuleAssociations withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules)

Set the effectiveSecurityRules property: Collection of effective security rules.

SecurityRuleAssociations withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation)

Set the networkInterfaceAssociation property: Network interface and it's custom security rules.

SecurityRuleAssociations withSubnetAssociation(SubnetAssociation subnetAssociation)

Set the subnetAssociation property: Subnet and it's custom security rules.

Methods inherited from java.lang.Object

Constructor Details

SecurityRuleAssociations

public SecurityRuleAssociations()

Creates an instance of SecurityRuleAssociations class.

Method Details

defaultSecurityRules

public List defaultSecurityRules()

Get the defaultSecurityRules property: Collection of default security rules of the network security group.

Returns:

the defaultSecurityRules value.

effectiveSecurityRules

public List effectiveSecurityRules()

Get the effectiveSecurityRules property: Collection of effective security rules.

Returns:

the effectiveSecurityRules value.

fromJson

public static SecurityRuleAssociations fromJson(JsonReader jsonReader)

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.

networkInterfaceAssociation

public NetworkInterfaceAssociation networkInterfaceAssociation()

Get the networkInterfaceAssociation property: Network interface and it's custom security rules.

Returns:

the networkInterfaceAssociation value.

subnetAssociation

public SubnetAssociation subnetAssociation()

Get the subnetAssociation property: Subnet and it's custom security rules.

Returns:

the subnetAssociation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultSecurityRules

public SecurityRuleAssociations withDefaultSecurityRules(List 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.

withEffectiveSecurityRules

public SecurityRuleAssociations withEffectiveSecurityRules(List effectiveSecurityRules)

Set the effectiveSecurityRules property: Collection of effective security rules.

Parameters:

effectiveSecurityRules - the effectiveSecurityRules value to set.

Returns:

the SecurityRuleAssociations object itself.

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.

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.

Applies to