ServerVersionCapability Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ServerVersionCapability
- com.
Implements
public final class ServerVersionCapability
implements JsonSerializable<ServerVersionCapability>
The server capability.
Constructor Summary
Constructor | Description |
---|---|
ServerVersionCapability() |
Creates an instance of Server |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
String |
name()
Get the name property: The server version name. |
String |
reason()
Get the reason property: The reason for the capability not being available. |
Capability |
status()
Get the status property: The status of the capability. |
List<Edition |
supportedEditions()
Get the supported |
List<Elastic |
supportedElasticPoolEditions()
Get the supported |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Server |
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:
Returns:
Throws:
name
public String name()
Get the name property: The server version name.
Returns:
reason
public String reason()
Get the reason property: The reason for the capability not being available.
Returns:
status
public CapabilityStatus status()
Get the status property: The status of the capability.
Returns:
supportedEditions
public List
Get the supportedEditions property: The list of supported database editions.
Returns:
supportedElasticPoolEditions
public List
Get the supportedElasticPoolEditions property: The list of supported elastic pool editions.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java