DedicatedHostInstanceViewWithName Class

public final class DedicatedHostInstanceViewWithName
extends DedicatedHostInstanceView

The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group.

Method Summary

Modifier and Type Method and Description
String assetId()

Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.

DedicatedHostAvailableCapacity availableCapacity()

Get the availableCapacity property: Unutilized capacity of the dedicated host.

static DedicatedHostInstanceViewWithName fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInstanceViewWithName from the JsonReader.

String name()

Get the name property: The name of the dedicated host.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from DedicatedHostInstanceView

Methods inherited from java.lang.Object

Method Details

assetId

public String assetId()

Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.

Overrides:

DedicatedHostInstanceViewWithName.assetId()

Returns:

the assetId value.

availableCapacity

public DedicatedHostAvailableCapacity availableCapacity()

Get the availableCapacity property: Unutilized capacity of the dedicated host.

Overrides:

DedicatedHostInstanceViewWithName.availableCapacity()

Returns:

the availableCapacity value.

fromJson

public static DedicatedHostInstanceViewWithName fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInstanceViewWithName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the dedicated host.

Returns:

the name value.

statuses

public List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

Overrides:

DedicatedHostInstanceViewWithName.statuses()

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DedicatedHostInstanceViewWithName.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DedicatedHostInstanceViewWithName.validate()

Applies to