Partilhar via


ManagedInstanceVersionCapability Class

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

Implements

public final class ManagedInstanceVersionCapability
implements JsonSerializable<ManagedInstanceVersionCapability>

The managed instance capability.

Constructor Summary

Constructor Description
ManagedInstanceVersionCapability()

Creates an instance of ManagedInstanceVersionCapability class.

Method Summary

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

Reads an instance of ManagedInstanceVersionCapability from the JsonReader.

String name()

Get the name property: The server 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<ManagedInstanceEditionCapability> supportedEditions()

Get the supportedEditions property: The list of supported managed instance editions.

List<InstancePoolEditionCapability> supportedInstancePoolEditions()

Get the supportedInstancePoolEditions property: The list of supported instance pool editions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedInstanceVersionCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceVersionCapability

public ManagedInstanceVersionCapability()

Creates an instance of ManagedInstanceVersionCapability class.

Method Details

fromJson

public static ManagedInstanceVersionCapability fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceVersionCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The server 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.

supportedEditions

public List supportedEditions()

Get the supportedEditions property: The list of supported managed instance editions.

Returns:

the supportedEditions value.

supportedInstancePoolEditions

public List supportedInstancePoolEditions()

Get the supportedInstancePoolEditions property: The list of supported instance pool editions.

Returns:

the supportedInstancePoolEditions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public ManagedInstanceVersionCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the ManagedInstanceVersionCapability object itself.

Applies to