SubnetAssociation Class

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

Implements

public final class SubnetAssociation
implements JsonSerializable<SubnetAssociation>

Subnet and it's custom security rules.

Method Summary

Modifier and Type Method and Description
static SubnetAssociation fromJson(JsonReader jsonReader)

Reads an instance of SubnetAssociation from the JsonReader.

String id()

Get the id property: Subnet ID.

List<SecurityRuleInner> securityRules()

Get the securityRules property: Collection of custom security rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static SubnetAssociation fromJson(JsonReader jsonReader)

Reads an instance of SubnetAssociation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SubnetAssociation 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 SubnetAssociation.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to