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
static NetworkInterfaceReference fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceReference from the JsonReader.

NetworkInterfaceReferenceProperties properties()

Get the properties property: Describes a network interface reference properties.

JsonWriter toJson(JsonWriter jsonWriter)
NetworkInterfaceReference withId(String id)
NetworkInterfaceReference withProperties(NetworkInterfaceReferenceProperties properties)

Set the properties property: Describes a network interface reference properties.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceReference

public NetworkInterfaceReference()

Creates an instance of NetworkInterfaceReference class.

Method Details

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.

properties

public NetworkInterfaceReferenceProperties properties()

Get the properties property: Describes a network interface reference properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkInterfaceReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withId

public NetworkInterfaceReference withId(String id)

Overrides:

NetworkInterfaceReference.withId(String id)

Parameters:

id

withProperties

public NetworkInterfaceReference withProperties(NetworkInterfaceReferenceProperties properties)

Set the properties property: Describes a network interface reference properties.

Parameters:

properties - the properties value to set.

Returns:

the NetworkInterfaceReference object itself.

Applies to