Partager via


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.

Constructor Summary

Constructor Description
DedicatedHostInstanceViewWithName()

Creates an instance of DedicatedHostInstanceViewWithName class.

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.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DedicatedHostInstanceViewWithName withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)

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

DedicatedHostInstanceViewWithName withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

Methods inherited from DedicatedHostInstanceView

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostInstanceViewWithName

public DedicatedHostInstanceViewWithName()

Creates an instance of DedicatedHostInstanceViewWithName class.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DedicatedHostInstanceViewWithName.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DedicatedHostInstanceViewWithName.validate()

withAvailableCapacity

public DedicatedHostInstanceViewWithName withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)

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

Overrides:

DedicatedHostInstanceViewWithName.withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)

Parameters:

availableCapacity

withStatuses

public DedicatedHostInstanceViewWithName withStatuses(List statuses)

Set the statuses property: The resource status information.

Overrides:

DedicatedHostInstanceViewWithName.withStatuses(List<InstanceViewStatus> statuses)

Parameters:

statuses

Applies to