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

Modifier Constructor Description
protected 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.

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostInstanceView

protected 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<InstanceViewStatus> 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.

Applies to