TrunkedNetworkAttachmentConfiguration Class

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

Implements

public final class TrunkedNetworkAttachmentConfiguration
implements JsonSerializable<TrunkedNetworkAttachmentConfiguration>

TrunkedNetworkAttachmentConfiguration represents the configuration of the attachment of a trunked network.

Constructor Summary

Constructor Description
TrunkedNetworkAttachmentConfiguration()

Creates an instance of TrunkedNetworkAttachmentConfiguration class.

Method Summary

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

Reads an instance of TrunkedNetworkAttachmentConfiguration 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.

TrunkedNetworkAttachmentConfiguration withNetworkId(String networkId)

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

TrunkedNetworkAttachmentConfiguration 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

TrunkedNetworkAttachmentConfiguration

public TrunkedNetworkAttachmentConfiguration()

Creates an instance of TrunkedNetworkAttachmentConfiguration class.

Method Details

fromJson

public static TrunkedNetworkAttachmentConfiguration fromJson(JsonReader jsonReader)

Reads an instance of TrunkedNetworkAttachmentConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TrunkedNetworkAttachmentConfiguration 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 TrunkedNetworkAttachmentConfiguration 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 TrunkedNetworkAttachmentConfiguration object itself.

withPluginType

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

Applies to