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.

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.

Methods inherited from java.lang.Object

Method Details

defaultSecurityRules

public List<SecurityRuleInner> defaultSecurityRules()

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

Returns:

the defaultSecurityRules value.

effectiveSecurityRules

public List<EffectiveNetworkSecurityRule> 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.

Applies to