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

NetworkInterfaceAssociation Class

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

Implements

public final class NetworkInterfaceAssociation
implements JsonSerializable<NetworkInterfaceAssociation>

Network interface and its custom security rules.

Constructor Summary

Constructor Description
NetworkInterfaceAssociation()

Creates an instance of NetworkInterfaceAssociation class.

Method Summary

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

Reads an instance of NetworkInterfaceAssociation from the JsonReader.

String id()

Get the id property: Network interface ID.

List<SecurityRuleInner> securityRules()

Get the securityRules property: Collection of custom security rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkInterfaceAssociation withSecurityRules(List<SecurityRuleInner> securityRules)

Set the securityRules property: Collection of custom security rules.

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceAssociation

public NetworkInterfaceAssociation()

Creates an instance of NetworkInterfaceAssociation class.

Method Details

fromJson

public static NetworkInterfaceAssociation fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceAssociation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Network interface 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 NetworkInterfaceAssociation withSecurityRules(List<SecurityRuleInner> securityRules)

Set the securityRules property: Collection of custom security rules.

Parameters:

securityRules - the securityRules value to set.

Returns:

the NetworkInterfaceAssociation object itself.

Applies to