Partager via


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.

Constructor Summary

Constructor Description
DedicatedHostAllocatableVM()

Creates an instance of DedicatedHostAllocatableVM class.

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.

DedicatedHostAllocatableVM withCount(Double count)

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

DedicatedHostAllocatableVM withVmSize(String vmSize)

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

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostAllocatableVM

public DedicatedHostAllocatableVM()

Creates an instance of DedicatedHostAllocatableVM class.

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.

withCount

public DedicatedHostAllocatableVM withCount(Double count)

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

Parameters:

count - the count value to set.

Returns:

the DedicatedHostAllocatableVM object itself.

withVmSize

public DedicatedHostAllocatableVM withVmSize(String vmSize)

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

Parameters:

vmSize - the vmSize value to set.

Returns:

the DedicatedHostAllocatableVM object itself.

Applies to