ClusterCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ClusterCapacity

Implements

public final class ClusterCapacity
implements JsonSerializable<ClusterCapacity>

ClusterCapacity represents various details regarding compute capacity.

Constructor Summary

Constructor Description
ClusterCapacity()

Creates an instance of ClusterCapacity class.

Method Summary

Modifier and Type Method and Description
Long availableApplianceStorageGB()

Get the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload use.

Long availableCoreCount()

Get the availableCoreCount property: The remaining number of cores that are available in this cluster for workload use.

Long availableHostStorageGB()

Get the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload use.

Long availableMemoryGB()

Get the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload use.

static ClusterCapacity fromJson(JsonReader jsonReader)

Reads an instance of ClusterCapacity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalApplianceStorageGB()

Get the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for workload use.

Long totalCoreCount()

Get the totalCoreCount property: The total number of cores that are supported by this cluster for workload use.

Long totalHostStorageGB()

Get the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for workload use.

Long totalMemoryGB()

Get the totalMemoryGB property: The total memory supported by this cluster for workload use.

void validate()

Validates the instance.

ClusterCapacity withAvailableApplianceStorageGB(Long availableApplianceStorageGB)

Set the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload use.

ClusterCapacity withAvailableCoreCount(Long availableCoreCount)

Set the availableCoreCount property: The remaining number of cores that are available in this cluster for workload use.

ClusterCapacity withAvailableHostStorageGB(Long availableHostStorageGB)

Set the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload use.

ClusterCapacity withAvailableMemoryGB(Long availableMemoryGB)

Set the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload use.

ClusterCapacity withTotalApplianceStorageGB(Long totalApplianceStorageGB)

Set the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for workload use.

ClusterCapacity withTotalCoreCount(Long totalCoreCount)

Set the totalCoreCount property: The total number of cores that are supported by this cluster for workload use.

ClusterCapacity withTotalHostStorageGB(Long totalHostStorageGB)

Set the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for workload use.

ClusterCapacity withTotalMemoryGB(Long totalMemoryGB)

Set the totalMemoryGB property: The total memory supported by this cluster for workload use.

Methods inherited from java.lang.Object

Constructor Details

ClusterCapacity

public ClusterCapacity()

Creates an instance of ClusterCapacity class.

Method Details

availableApplianceStorageGB

public Long availableApplianceStorageGB()

Get the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload use. Measured in gibibytes.

Returns:

the availableApplianceStorageGB value.

availableCoreCount

public Long availableCoreCount()

Get the availableCoreCount property: The remaining number of cores that are available in this cluster for workload use.

Returns:

the availableCoreCount value.

availableHostStorageGB

public Long availableHostStorageGB()

Get the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes.

Returns:

the availableHostStorageGB value.

availableMemoryGB

public Long availableMemoryGB()

Get the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes.

Returns:

the availableMemoryGB value.

fromJson

public static ClusterCapacity fromJson(JsonReader jsonReader)

Reads an instance of ClusterCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalApplianceStorageGB

public Long totalApplianceStorageGB()

Get the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes.

Returns:

the totalApplianceStorageGB value.

totalCoreCount

public Long totalCoreCount()

Get the totalCoreCount property: The total number of cores that are supported by this cluster for workload use.

Returns:

the totalCoreCount value.

totalHostStorageGB

public Long totalHostStorageGB()

Get the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes.

Returns:

the totalHostStorageGB value.

totalMemoryGB

public Long totalMemoryGB()

Get the totalMemoryGB property: The total memory supported by this cluster for workload use. Measured in gibibytes.

Returns:

the totalMemoryGB value.

validate

public void validate()

Validates the instance.

withAvailableApplianceStorageGB

public ClusterCapacity withAvailableApplianceStorageGB(Long availableApplianceStorageGB)

Set the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload use. Measured in gibibytes.

Parameters:

availableApplianceStorageGB - the availableApplianceStorageGB value to set.

Returns:

the ClusterCapacity object itself.

withAvailableCoreCount

public ClusterCapacity withAvailableCoreCount(Long availableCoreCount)

Set the availableCoreCount property: The remaining number of cores that are available in this cluster for workload use.

Parameters:

availableCoreCount - the availableCoreCount value to set.

Returns:

the ClusterCapacity object itself.

withAvailableHostStorageGB

public ClusterCapacity withAvailableHostStorageGB(Long availableHostStorageGB)

Set the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes.

Parameters:

availableHostStorageGB - the availableHostStorageGB value to set.

Returns:

the ClusterCapacity object itself.

withAvailableMemoryGB

public ClusterCapacity withAvailableMemoryGB(Long availableMemoryGB)

Set the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes.

Parameters:

availableMemoryGB - the availableMemoryGB value to set.

Returns:

the ClusterCapacity object itself.

withTotalApplianceStorageGB

public ClusterCapacity withTotalApplianceStorageGB(Long totalApplianceStorageGB)

Set the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes.

Parameters:

totalApplianceStorageGB - the totalApplianceStorageGB value to set.

Returns:

the ClusterCapacity object itself.

withTotalCoreCount

public ClusterCapacity withTotalCoreCount(Long totalCoreCount)

Set the totalCoreCount property: The total number of cores that are supported by this cluster for workload use.

Parameters:

totalCoreCount - the totalCoreCount value to set.

Returns:

the ClusterCapacity object itself.

withTotalHostStorageGB

public ClusterCapacity withTotalHostStorageGB(Long totalHostStorageGB)

Set the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes.

Parameters:

totalHostStorageGB - the totalHostStorageGB value to set.

Returns:

the ClusterCapacity object itself.

withTotalMemoryGB

public ClusterCapacity withTotalMemoryGB(Long totalMemoryGB)

Set the totalMemoryGB property: The total memory supported by this cluster for workload use. Measured in gibibytes.

Parameters:

totalMemoryGB - the totalMemoryGB value to set.

Returns:

the ClusterCapacity object itself.

Applies to