Partager via


DedicatedHostInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.DedicatedHostInstanceView

Implements

public class DedicatedHostInstanceView
implements JsonSerializable<DedicatedHostInstanceView>

The instance view of a dedicated host.

Constructor Summary

Constructor Description
DedicatedHostInstanceView()

Creates an instance of DedicatedHostInstanceView 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.

DedicatedHostAvailableCapacity availableCapacity()

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

static DedicatedHostInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInstanceView from the JsonReader.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DedicatedHostInstanceView withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)

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

DedicatedHostInstanceView withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostInstanceView

public DedicatedHostInstanceView()

Creates an instance of DedicatedHostInstanceView 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.

Returns:

the assetId value.

availableCapacity

public DedicatedHostAvailableCapacity availableCapacity()

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

Returns:

the availableCapacity value.

fromJson

public static DedicatedHostInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailableCapacity

public DedicatedHostInstanceView withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)

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

Parameters:

availableCapacity - the availableCapacity value to set.

Returns:

the DedicatedHostInstanceView object itself.

withStatuses

public DedicatedHostInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the DedicatedHostInstanceView object itself.

Applies to