InstancePoolVcoresCapability Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.InstancePoolVcoresCapability

Implements

public final class InstancePoolVcoresCapability
implements JsonSerializable<InstancePoolVcoresCapability>

The managed instance virtual cores capability.

Constructor Summary

Constructor Description
InstancePoolVcoresCapability()

Creates an instance of InstancePoolVcoresCapability class.

Method Summary

Modifier and Type Method and Description
static InstancePoolVcoresCapability fromJson(JsonReader jsonReader)

Reads an instance of InstancePoolVcoresCapability from the JsonReader.

String name()

Get the name property: The virtual cores identifier.

String reason()

Get the reason property: The reason for the capability not being available.

CapabilityStatus status()

Get the status property: The status of the capability.

MaxSizeCapability storageLimit()

Get the storageLimit property: Storage limit.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer value()

Get the value property: The virtual cores value.

InstancePoolVcoresCapability withReason(String reason)

Set the reason property: The reason for the capability not being available.

Methods inherited from java.lang.Object

Constructor Details

InstancePoolVcoresCapability

public InstancePoolVcoresCapability()

Creates an instance of InstancePoolVcoresCapability class.

Method Details

fromJson

public static InstancePoolVcoresCapability fromJson(JsonReader jsonReader)

Reads an instance of InstancePoolVcoresCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The virtual cores identifier.

Returns:

the name value.

reason

public String reason()

Get the reason property: The reason for the capability not being available.

Returns:

the reason value.

status

public CapabilityStatus status()

Get the status property: The status of the capability.

Returns:

the status value.

storageLimit

public MaxSizeCapability storageLimit()

Get the storageLimit property: Storage limit.

Returns:

the storageLimit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Integer value()

Get the value property: The virtual cores value.

Returns:

the value value.

withReason

public InstancePoolVcoresCapability withReason(String reason)

Set the reason property: The reason for the capability not being available.

Parameters:

reason - the reason value to set.

Returns:

the InstancePoolVcoresCapability object itself.

Applies to