NetworkInterfaceUpdate Class

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

Implements

public final class NetworkInterfaceUpdate
implements JsonSerializable<NetworkInterfaceUpdate>

Network Interface Update model.

Constructor Summary

Constructor Description
NetworkInterfaceUpdate()

Creates an instance of NetworkInterfaceUpdate class.

Method Summary

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

Reads an instance of NetworkInterfaceUpdate from the JsonReader.

AllocationMethod ipv4AddressType()

Get the ipv4AddressType property: Gets or sets the ipv4 address type.

AllocationMethod ipv6AddressType()

Get the ipv6AddressType property: Gets or sets the ipv6 address type.

String macAddress()

Get the macAddress property: Gets or sets the nic MAC address.

AllocationMethod macAddressType()

Get the macAddressType property: Gets or sets the mac address type.

String name()

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

String nicId()

Get the nicId property: Gets or sets the nic id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String virtualNetworkId()

Get the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.

NetworkInterfaceUpdate withIpv4AddressType(AllocationMethod ipv4AddressType)

Set the ipv4AddressType property: Gets or sets the ipv4 address type.

NetworkInterfaceUpdate withIpv6AddressType(AllocationMethod ipv6AddressType)

Set the ipv6AddressType property: Gets or sets the ipv6 address type.

NetworkInterfaceUpdate withMacAddress(String macAddress)

Set the macAddress property: Gets or sets the nic MAC address.

NetworkInterfaceUpdate withMacAddressType(AllocationMethod macAddressType)

Set the macAddressType property: Gets or sets the mac address type.

NetworkInterfaceUpdate withName(String name)

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

NetworkInterfaceUpdate withNicId(String nicId)

Set the nicId property: Gets or sets the nic id.

NetworkInterfaceUpdate withVirtualNetworkId(String virtualNetworkId)

Set the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceUpdate

public NetworkInterfaceUpdate()

Creates an instance of NetworkInterfaceUpdate class.

Method Details

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.

ipv4AddressType

public AllocationMethod ipv4AddressType()

Get the ipv4AddressType property: Gets or sets the ipv4 address type.

Returns:

the ipv4AddressType value.

ipv6AddressType

public AllocationMethod ipv6AddressType()

Get the ipv6AddressType property: Gets or sets the ipv6 address type.

Returns:

the ipv6AddressType value.

macAddress

public String macAddress()

Get the macAddress property: Gets or sets the nic MAC address.

Returns:

the macAddress value.

macAddressType

public AllocationMethod macAddressType()

Get the macAddressType property: Gets or sets the mac address type.

Returns:

the macAddressType value.

name

public String name()

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

Returns:

the name value.

nicId

public String nicId()

Get the nicId property: Gets or sets the nic id.

Returns:

the nicId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkId

public String virtualNetworkId()

Get the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.

Returns:

the virtualNetworkId value.

withIpv4AddressType

public NetworkInterfaceUpdate withIpv4AddressType(AllocationMethod ipv4AddressType)

Set the ipv4AddressType property: Gets or sets the ipv4 address type.

Parameters:

ipv4AddressType - the ipv4AddressType value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withIpv6AddressType

public NetworkInterfaceUpdate withIpv6AddressType(AllocationMethod ipv6AddressType)

Set the ipv6AddressType property: Gets or sets the ipv6 address type.

Parameters:

ipv6AddressType - the ipv6AddressType value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withMacAddress

public NetworkInterfaceUpdate withMacAddress(String macAddress)

Set the macAddress property: Gets or sets the nic MAC address.

Parameters:

macAddress - the macAddress value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withMacAddressType

public NetworkInterfaceUpdate withMacAddressType(AllocationMethod macAddressType)

Set the macAddressType property: Gets or sets the mac address type.

Parameters:

macAddressType - the macAddressType 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.

withNicId

public NetworkInterfaceUpdate withNicId(String nicId)

Set the nicId property: Gets or sets the nic id.

Parameters:

nicId - the nicId value to set.

Returns:

the NetworkInterfaceUpdate object itself.

withVirtualNetworkId

public NetworkInterfaceUpdate withVirtualNetworkId(String virtualNetworkId)

Set the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.

Parameters:

virtualNetworkId - the virtualNetworkId value to set.

Returns:

the NetworkInterfaceUpdate object itself.

Applies to