ServerVersionCapability Class

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

Implements

public final class ServerVersionCapability
implements JsonSerializable<ServerVersionCapability>

The server capability.

Constructor Summary

Constructor Description
ServerVersionCapability()

Creates an instance of ServerVersionCapability class.

Method Summary

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

Reads an instance of ServerVersionCapability 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<EditionCapability> supportedEditions()

Get the supportedEditions property: The list of supported database editions.

List<ElasticPoolEditionCapability> supportedElasticPoolEditions()

Get the supportedElasticPoolEditions property: The list of supported elastic pool editions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerVersionCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

ServerVersionCapability

public ServerVersionCapability()

Creates an instance of ServerVersionCapability class.

Method Details

fromJson

public static ServerVersionCapability fromJson(JsonReader jsonReader)

Reads an instance of ServerVersionCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 database editions.

Returns:

the supportedEditions value.

supportedElasticPoolEditions

public List supportedElasticPoolEditions()

Get the supportedElasticPoolEditions property: The list of supported elastic pool editions.

Returns:

the supportedElasticPoolEditions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public ServerVersionCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the ServerVersionCapability object itself.

Applies to