DedicatedHostAllocatableVM Class

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

Implements

public final class DedicatedHostAllocatableVM
implements JsonSerializable<DedicatedHostAllocatableVM>

Represents the dedicated host unutilized capacity in terms of a specific VM size.

Method Summary

Modifier and Type Method and Description
Double count()

Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.

static DedicatedHostAllocatableVM fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostAllocatableVM from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vmSize()

Get the vmSize property: VM size in terms of which the unutilized capacity is represented.

Methods inherited from java.lang.Object

Method Details

count

public Double count()

Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.

Returns:

the count value.

fromJson

public static DedicatedHostAllocatableVM fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostAllocatableVM from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmSize

public String vmSize()

Get the vmSize property: VM size in terms of which the unutilized capacity is represented.

Returns:

the vmSize value.

Applies to