Compartir a través de


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 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 securityRules)

Set the securityRules property: Collection of custom security rules.

Parameters:

securityRules - the securityRules value to set.

Returns:

the NetworkInterfaceAssociation object itself.

Applies to