L2NetworkAttachmentConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.L2NetworkAttachmentConfiguration

Implements

public final class L2NetworkAttachmentConfiguration
implements JsonSerializable<L2NetworkAttachmentConfiguration>

L2NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 2 network.

Constructor Summary

Constructor Description
L2NetworkAttachmentConfiguration()

Creates an instance of L2NetworkAttachmentConfiguration class.

Method Summary

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

Reads an instance of L2NetworkAttachmentConfiguration from the JsonReader.

String networkId()

Get the networkId property: The resource ID of the network that is being configured for attachment.

KubernetesPluginType pluginType()

Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

L2NetworkAttachmentConfiguration withNetworkId(String networkId)

Set the networkId property: The resource ID of the network that is being configured for attachment.

L2NetworkAttachmentConfiguration withPluginType(KubernetesPluginType pluginType)

Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.

Methods inherited from java.lang.Object

Constructor Details

L2NetworkAttachmentConfiguration

public L2NetworkAttachmentConfiguration()

Creates an instance of L2NetworkAttachmentConfiguration class.

Method Details

fromJson

public static L2NetworkAttachmentConfiguration fromJson(JsonReader jsonReader)

Reads an instance of L2NetworkAttachmentConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of L2NetworkAttachmentConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

networkId

public String networkId()

Get the networkId property: The resource ID of the network that is being configured for attachment.

Returns:

the networkId value.

pluginType

public KubernetesPluginType pluginType()

Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.

Returns:

the pluginType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNetworkId

public L2NetworkAttachmentConfiguration withNetworkId(String networkId)

Set the networkId property: The resource ID of the network that is being configured for attachment.

Parameters:

networkId - the networkId value to set.

Returns:

the L2NetworkAttachmentConfiguration object itself.

withPluginType

public L2NetworkAttachmentConfiguration withPluginType(KubernetesPluginType pluginType)

Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.

Parameters:

pluginType - the pluginType value to set.

Returns:

the L2NetworkAttachmentConfiguration object itself.

Applies to