CloudCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.CloudCapacity

Implements

public final class CloudCapacity
implements JsonSerializable<CloudCapacity>

Cloud Capacity model.

Constructor Summary

Constructor Description
CloudCapacity()

Creates an instance of CloudCapacity class.

Method Summary

Modifier and Type Method and Description
Long cpuCount()

Get the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.

static CloudCapacity fromJson(JsonReader jsonReader)

Reads an instance of CloudCapacity from the JsonReader.

Long memoryMB()

Get the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Long vmCount()

Get the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.

Methods inherited from java.lang.Object

Constructor Details

CloudCapacity

public CloudCapacity()

Creates an instance of CloudCapacity class.

Method Details

cpuCount

public Long cpuCount()

Get the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.

Returns:

the cpuCount value.

fromJson

public static CloudCapacity fromJson(JsonReader jsonReader)

Reads an instance of CloudCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

memoryMB

public Long memoryMB()

Get the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.

Returns:

the memoryMB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmCount

public Long vmCount()

Get the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.

Returns:

the vmCount value.

Applies to