L2NetworkAttachmentConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. L2NetworkAttachmentConfiguration
- com.
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 L2Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
L2Network |
fromJson(JsonReader jsonReader)
Reads an instance of L2Network |
| String |
networkId()
Get the network |
|
Kubernetes |
pluginType()
Get the plugin |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
L2Network |
withNetworkId(String networkId)
Set the network |
|
L2Network |
withPluginType(KubernetesPluginType pluginType)
Set the plugin |
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:
Returns:
Throws:
networkId
public String networkId()
Get the networkId property: The resource ID of the network that is being configured for attachment.
Returns:
pluginType
public KubernetesPluginType pluginType()
Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.
Returns:
toJson
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:
Returns:
withPluginType
public L2NetworkAttachmentConfiguration withPluginType(KubernetesPluginType pluginType)
Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster.
Parameters:
Returns: