你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.

Constructor Summary

Constructor Description
SubnetAssociation()

Creates an instance of SubnetAssociation class.

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.

SubnetAssociation withSecurityRules(List<SecurityRuleInner> securityRules)

Set the securityRules property: Collection of custom security rules.

Methods inherited from java.lang.Object

Constructor Details

SubnetAssociation

public SubnetAssociation()

Creates an instance of SubnetAssociation class.

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.

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.

Applies to