你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AttachedNetworkConfiguration Class

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

Implements

public final class AttachedNetworkConfiguration
implements JsonSerializable<AttachedNetworkConfiguration>

AttachedNetworkConfiguration represents the set of workload networks to attach to a resource.

Constructor Summary

Constructor Description
AttachedNetworkConfiguration()

Creates an instance of AttachedNetworkConfiguration class.

Method Summary

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

Reads an instance of AttachedNetworkConfiguration from the JsonReader.

List<L2NetworkAttachmentConfiguration> l2Networks()

Get the l2Networks property: The list of Layer 2 Networks and related configuration for attachment.

List<L3NetworkAttachmentConfiguration> l3Networks()

Get the l3Networks property: The list of Layer 3 Networks and related configuration for attachment.

JsonWriter toJson(JsonWriter jsonWriter)
List<TrunkedNetworkAttachmentConfiguration> trunkedNetworks()

Get the trunkedNetworks property: The list of Trunked Networks and related configuration for attachment.

void validate()

Validates the instance.

AttachedNetworkConfiguration withL2Networks(List<L2NetworkAttachmentConfiguration> l2Networks)

Set the l2Networks property: The list of Layer 2 Networks and related configuration for attachment.

AttachedNetworkConfiguration withL3Networks(List<L3NetworkAttachmentConfiguration> l3Networks)

Set the l3Networks property: The list of Layer 3 Networks and related configuration for attachment.

AttachedNetworkConfiguration withTrunkedNetworks(List<TrunkedNetworkAttachmentConfiguration> trunkedNetworks)

Set the trunkedNetworks property: The list of Trunked Networks and related configuration for attachment.

Methods inherited from java.lang.Object

Constructor Details

AttachedNetworkConfiguration

public AttachedNetworkConfiguration()

Creates an instance of AttachedNetworkConfiguration class.

Method Details

fromJson

public static AttachedNetworkConfiguration fromJson(JsonReader jsonReader)

Reads an instance of AttachedNetworkConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AttachedNetworkConfiguration.

l2Networks

public List<L2NetworkAttachmentConfiguration> l2Networks()

Get the l2Networks property: The list of Layer 2 Networks and related configuration for attachment.

Returns:

the l2Networks value.

l3Networks

public List<L3NetworkAttachmentConfiguration> l3Networks()

Get the l3Networks property: The list of Layer 3 Networks and related configuration for attachment.

Returns:

the l3Networks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trunkedNetworks

public List<TrunkedNetworkAttachmentConfiguration> trunkedNetworks()

Get the trunkedNetworks property: The list of Trunked Networks and related configuration for attachment.

Returns:

the trunkedNetworks value.

validate

public void validate()

Validates the instance.

withL2Networks

public AttachedNetworkConfiguration withL2Networks(List<L2NetworkAttachmentConfiguration> l2Networks)

Set the l2Networks property: The list of Layer 2 Networks and related configuration for attachment.

Parameters:

l2Networks - the l2Networks value to set.

Returns:

the AttachedNetworkConfiguration object itself.

withL3Networks

public AttachedNetworkConfiguration withL3Networks(List<L3NetworkAttachmentConfiguration> l3Networks)

Set the l3Networks property: The list of Layer 3 Networks and related configuration for attachment.

Parameters:

l3Networks - the l3Networks value to set.

Returns:

the AttachedNetworkConfiguration object itself.

withTrunkedNetworks

public AttachedNetworkConfiguration withTrunkedNetworks(List<TrunkedNetworkAttachmentConfiguration> trunkedNetworks)

Set the trunkedNetworks property: The list of Trunked Networks and related configuration for attachment.

Parameters:

trunkedNetworks - the trunkedNetworks value to set.

Returns:

the AttachedNetworkConfiguration object itself.

Applies to