Layer2ConfigurationPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.managednetworkfabric.models.Layer2ConfigurationPatch

Implements

public final class Layer2ConfigurationPatch
implements JsonSerializable<Layer2ConfigurationPatch>

Common properties for Layer2 Configuration.

Constructor Summary

Constructor Description
Layer2ConfigurationPatch()

Creates an instance of Layer2ConfigurationPatch class.

Method Summary

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

Reads an instance of Layer2ConfigurationPatch from the JsonReader.

List<String> interfaces()

Get the interfaces property: List of network device interfaces resource IDs.

Integer mtu()

Get the mtu property: MTU of the packets between PE & CE.

JsonWriter toJson(JsonWriter jsonWriter)
Layer2ConfigurationPatch withInterfaces(List<String> interfaces)

Set the interfaces property: List of network device interfaces resource IDs.

Layer2ConfigurationPatch withMtu(Integer mtu)

Set the mtu property: MTU of the packets between PE & CE.

Methods inherited from java.lang.Object

Constructor Details

Layer2ConfigurationPatch

public Layer2ConfigurationPatch()

Creates an instance of Layer2ConfigurationPatch class.

Method Details

fromJson

public static Layer2ConfigurationPatch fromJson(JsonReader jsonReader)

Reads an instance of Layer2ConfigurationPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

interfaces

public List<String> interfaces()

Get the interfaces property: List of network device interfaces resource IDs.

Returns:

the interfaces value.

mtu

public Integer mtu()

Get the mtu property: MTU of the packets between PE & CE.

Returns:

the mtu value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withInterfaces

public Layer2ConfigurationPatch withInterfaces(List<String> interfaces)

Set the interfaces property: List of network device interfaces resource IDs.

Parameters:

interfaces - the interfaces value to set.

Returns:

the Layer2ConfigurationPatch object itself.

withMtu

public Layer2ConfigurationPatch withMtu(Integer mtu)

Set the mtu property: MTU of the packets between PE & CE.

Parameters:

mtu - the mtu value to set.

Returns:

the Layer2ConfigurationPatch object itself.

Applies to