L2NetworkInner Class

public final class L2NetworkInner
extends Resource

L2Network represents a network that utilizes a single isolation domain set up for layer-2 resources.

Constructor Summary

Constructor Description
L2NetworkInner()

Creates an instance of L2NetworkInner class.

Method Summary

Modifier and Type Method and Description
List<String> associatedResourceIds()

Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.

String clusterId()

Get the clusterId property: The resource ID of the Network Cloud cluster this L2 network is associated with.

L2NetworkDetailedStatus detailedStatus()

Get the detailedStatus property: The more detailed status of the L2 network.

String detailedStatusMessage()

Get the detailedStatusMessage property: The descriptive message about the current detailed status.

String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the resource.

static L2NetworkInner fromJson(JsonReader jsonReader)

Reads an instance of L2NetworkInner from the JsonReader.

List<String> hybridAksClustersAssociatedIds()

Get the hybridAksClustersAssociatedIds property: Field Deprecated.

HybridAksPluginType hybridAksPluginType()

Get the hybridAksPluginType property: Field Deprecated.

String id()

Get the id property: Fully qualified resource Id for the resource.

String interfaceName()

Get the interfaceName property: The default interface name for this L2 network in the virtual machine.

String l2IsolationDomainId()

Get the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain.

String name()

Get the name property: The name of the resource.

L2NetworkProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the L2 network.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

List<String> virtualMachinesAssociatedIds()

Get the virtualMachinesAssociatedIds property: Field Deprecated.

L2NetworkInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the resource.

L2NetworkInner withHybridAksPluginType(HybridAksPluginType hybridAksPluginType)

Set the hybridAksPluginType property: Field Deprecated.

L2NetworkInner withInterfaceName(String interfaceName)

Set the interfaceName property: The default interface name for this L2 network in the virtual machine.

L2NetworkInner withL2IsolationDomainId(String l2IsolationDomainId)

Set the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain.

L2NetworkInner withLocation(String location)
L2NetworkInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

L2NetworkInner

public L2NetworkInner()

Creates an instance of L2NetworkInner class.

Method Details

associatedResourceIds

public List<String> associatedResourceIds()

Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.

Returns:

the associatedResourceIds value.

clusterId

public String clusterId()

Get the clusterId property: The resource ID of the Network Cloud cluster this L2 network is associated with.

Returns:

the clusterId value.

detailedStatus

public L2NetworkDetailedStatus detailedStatus()

Get the detailedStatus property: The more detailed status of the L2 network.

Returns:

the detailedStatus value.

detailedStatusMessage

public String detailedStatusMessage()

Get the detailedStatusMessage property: The descriptive message about the current detailed status.

Returns:

the detailedStatusMessage value.

etag

public String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the resource. This property is required when creating the resource.

Returns:

the extendedLocation value.

fromJson

public static L2NetworkInner fromJson(JsonReader jsonReader)

Reads an instance of L2NetworkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hybridAksClustersAssociatedIds

public List<String> hybridAksClustersAssociatedIds()

Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource ID(s) that are associated with this L2 network.

Returns:

the hybridAksClustersAssociatedIds value.

hybridAksPluginType

public HybridAksPluginType hybridAksPluginType()

Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.

Returns:

the hybridAksPluginType value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

L2NetworkInner.id()

Returns:

the id value.

interfaceName

public String interfaceName()

Get the interfaceName property: The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine.

Returns:

the interfaceName value.

l2IsolationDomainId

public String l2IsolationDomainId()

Get the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain.

Returns:

the l2IsolationDomainId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

L2NetworkInner.name()

Returns:

the name value.

provisioningState

public L2NetworkProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the L2 network.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

L2NetworkInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

L2NetworkInner.type()

Returns:

the type value.

virtualMachinesAssociatedIds

public List<String> virtualMachinesAssociatedIds()

Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 network.

Returns:

the virtualMachinesAssociatedIds value.

withExtendedLocation

public L2NetworkInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the resource. This property is required when creating the resource.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the L2NetworkInner object itself.

withHybridAksPluginType

public L2NetworkInner withHybridAksPluginType(HybridAksPluginType hybridAksPluginType)

Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.

Parameters:

hybridAksPluginType - the hybridAksPluginType value to set.

Returns:

the L2NetworkInner object itself.

withInterfaceName

public L2NetworkInner withInterfaceName(String interfaceName)

Set the interfaceName property: The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine.

Parameters:

interfaceName - the interfaceName value to set.

Returns:

the L2NetworkInner object itself.

withL2IsolationDomainId

public L2NetworkInner withL2IsolationDomainId(String l2IsolationDomainId)

Set the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain.

Parameters:

l2IsolationDomainId - the l2IsolationDomainId value to set.

Returns:

the L2NetworkInner object itself.

withLocation

public L2NetworkInner withLocation(String location)

Overrides:

L2NetworkInner.withLocation(String location)

Parameters:

location

withTags

public L2NetworkInner withTags(Map<String,String> tags)

Overrides:

L2NetworkInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to