NetworkInterfaceReference Class

public final class NetworkInterfaceReference
extends SubResource

Describes a network interface reference.

Constructor Summary

Constructor Description
NetworkInterfaceReference()

Creates an instance of NetworkInterfaceReference 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 NetworkInterfaceReference fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceReference 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.

NetworkInterfaceReference withDeleteOption(DeleteOptions deleteOption)

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

NetworkInterfaceReference withId(String id)
NetworkInterfaceReference 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 SubResource

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceReference

public NetworkInterfaceReference()

Creates an instance of NetworkInterfaceReference 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 NetworkInterfaceReference fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Overrides:

NetworkInterfaceReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeleteOption

public NetworkInterfaceReference 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 NetworkInterfaceReference object itself.

withId

public NetworkInterfaceReference withId(String id)

Overrides:

NetworkInterfaceReference.withId(String id)

Parameters:

id

withPrimary

public NetworkInterfaceReference 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 NetworkInterfaceReference object itself.

Applies to