InstancePoolEditionCapability Class

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

Implements

public final class InstancePoolEditionCapability
implements JsonSerializable<InstancePoolEditionCapability>

The instance pool capability.

Constructor Summary

Constructor Description
InstancePoolEditionCapability()

Creates an instance of InstancePoolEditionCapability class.

Method Summary

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

Reads an instance of InstancePoolEditionCapability from the JsonReader.

String name()

Get the name property: The instance pool version name.

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.

List<InstancePoolFamilyCapability> supportedFamilies()

Get the supportedFamilies property: The supported families.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InstancePoolEditionCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

InstancePoolEditionCapability

public InstancePoolEditionCapability()

Creates an instance of InstancePoolEditionCapability class.

Method Details

fromJson

public static InstancePoolEditionCapability fromJson(JsonReader jsonReader)

Reads an instance of InstancePoolEditionCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The instance pool version name.

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.

supportedFamilies

public List supportedFamilies()

Get the supportedFamilies property: The supported families.

Returns:

the supportedFamilies value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public InstancePoolEditionCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the InstancePoolEditionCapability object itself.

Applies to