NetworkInterfaceReferenceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.NetworkInterfaceReferenceProperties

Implements

public final class NetworkInterfaceReferenceProperties
implements JsonSerializable<NetworkInterfaceReferenceProperties>

Describes a network interface reference properties.

Constructor Summary

Constructor Description
NetworkInterfaceReferenceProperties()

Creates an instance of NetworkInterfaceReferenceProperties class.

Method Summary

Modifier and Type Method and Description
DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.

static NetworkInterfaceReferenceProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceReferenceProperties from the JsonReader.

Boolean primary()

Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkInterfaceReferenceProperties withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.

NetworkInterfaceReferenceProperties withPrimary(Boolean primary)

Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceReferenceProperties

public NetworkInterfaceReferenceProperties()

Creates an instance of NetworkInterfaceReferenceProperties class.

Method Details

deleteOption

public DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.

Returns:

the deleteOption value.

fromJson

public static NetworkInterfaceReferenceProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceReferenceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

primary

public Boolean primary()

Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Returns:

the primary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeleteOption

public NetworkInterfaceReferenceProperties withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.

Parameters:

deleteOption - the deleteOption value to set.

Returns:

the NetworkInterfaceReferenceProperties object itself.

withPrimary

public NetworkInterfaceReferenceProperties withPrimary(Boolean primary)

Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Parameters:

primary - the primary value to set.

Returns:

the NetworkInterfaceReferenceProperties object itself.

Applies to