NetworkInterfaceUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.NetworkInterfaceUpdate

Implements

public final class NetworkInterfaceUpdate
implements JsonSerializable<NetworkInterfaceUpdate>

Defines the network interface update.

Constructor Summary

Constructor Description
NetworkInterfaceUpdate()

Creates an instance of NetworkInterfaceUpdate class.

Method Summary

Modifier and Type Method and Description
Integer deviceKey()

Get the deviceKey property: Gets or sets the device key value.

static NetworkInterfaceUpdate fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceUpdate from the JsonReader.

String name()

Get the name property: Gets or sets the name of the network interface.

String networkId()

Get the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.

NicType nicType()

Get the nicType property: NIC type.

PowerOnBootOption powerOnBoot()

Get the powerOnBoot property: Gets or sets the power on boot.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkInterfaceUpdate withDeviceKey(Integer deviceKey)

Set the deviceKey property: Gets or sets the device key value.

NetworkInterfaceUpdate withName(String name)

Set the name property: Gets or sets the name of the network interface.

NetworkInterfaceUpdate withNetworkId(String networkId)

Set the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.

NetworkInterfaceUpdate withNicType(NicType nicType)

Set the nicType property: NIC type.

NetworkInterfaceUpdate withPowerOnBoot(PowerOnBootOption powerOnBoot)

Set the powerOnBoot property: Gets or sets the power on boot.

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceUpdate

public NetworkInterfaceUpdate()

Creates an instance of NetworkInterfaceUpdate class.

Method Details

deviceKey

public Integer deviceKey()

Get the deviceKey property: Gets or sets the device key value.

Returns:

the deviceKey value.

fromJson

public static NetworkInterfaceUpdate fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Gets or sets the name of the network interface.

Returns:

the name value.

networkId

public String networkId()

Get the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.

Returns:

the networkId value.

nicType

public NicType nicType()

Get the nicType property: NIC type.

Returns:

the nicType value.

powerOnBoot

public PowerOnBootOption powerOnBoot()

Get the powerOnBoot property: Gets or sets the power on boot.

Returns:

the powerOnBoot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeviceKey

public NetworkInterfaceUpdate withDeviceKey(Integer deviceKey)

Set the deviceKey property: Gets or sets the device key value.

Parameters:

deviceKey - the deviceKey value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withName

public NetworkInterfaceUpdate withName(String name)

Set the name property: Gets or sets the name of the network interface.

Parameters:

name - the name value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withNetworkId

public NetworkInterfaceUpdate withNetworkId(String networkId)

Set the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.

Parameters:

networkId - the networkId value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withNicType

public NetworkInterfaceUpdate withNicType(NicType nicType)

Set the nicType property: NIC type.

Parameters:

nicType - the nicType value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withPowerOnBoot

public NetworkInterfaceUpdate withPowerOnBoot(PowerOnBootOption powerOnBoot)

Set the powerOnBoot property: Gets or sets the power on boot.

Parameters:

powerOnBoot - the powerOnBoot value to set.

Returns:

the NetworkInterfaceUpdate object itself.

Applies to