L3NetworkAttachmentConfiguration Class

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

Implements

public final class L3NetworkAttachmentConfiguration
implements JsonSerializable<L3NetworkAttachmentConfiguration>

L3NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 3 network.

Constructor Summary

Constructor Description
L3NetworkAttachmentConfiguration()

Creates an instance of L3NetworkAttachmentConfiguration class.

Method Summary

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

Reads an instance of L3NetworkAttachmentConfiguration from the JsonReader.

L3NetworkConfigurationIpamEnabled ipamEnabled()

Get the ipamEnabled property: The indication of whether this network will or will not perform IP address management and allocate IP addresses when attached.

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.

L3NetworkAttachmentConfiguration withIpamEnabled(L3NetworkConfigurationIpamEnabled ipamEnabled)

Set the ipamEnabled property: The indication of whether this network will or will not perform IP address management and allocate IP addresses when attached.

L3NetworkAttachmentConfiguration withNetworkId(String networkId)

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

L3NetworkAttachmentConfiguration 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

L3NetworkAttachmentConfiguration

public L3NetworkAttachmentConfiguration()

Creates an instance of L3NetworkAttachmentConfiguration class.

Method Details

fromJson

public static L3NetworkAttachmentConfiguration fromJson(JsonReader jsonReader)

Reads an instance of L3NetworkAttachmentConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipamEnabled

public L3NetworkConfigurationIpamEnabled ipamEnabled()

Get the ipamEnabled property: The indication of whether this network will or will not perform IP address management and allocate IP addresses when attached.

Returns:

the ipamEnabled value.

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.

withIpamEnabled

public L3NetworkAttachmentConfiguration withIpamEnabled(L3NetworkConfigurationIpamEnabled ipamEnabled)

Set the ipamEnabled property: The indication of whether this network will or will not perform IP address management and allocate IP addresses when attached.

Parameters:

ipamEnabled - the ipamEnabled value to set.

Returns:

the L3NetworkAttachmentConfiguration object itself.

withNetworkId

public L3NetworkAttachmentConfiguration 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 L3NetworkAttachmentConfiguration object itself.

withPluginType

public L3NetworkAttachmentConfiguration 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 L3NetworkAttachmentConfiguration object itself.

Applies to