StorageCapability Class

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

Implements

public final class StorageCapability
implements JsonSerializable<StorageCapability>

The storage account type capability.

Constructor Summary

Constructor Description
StorageCapability()

Creates an instance of StorageCapability class.

Method Summary

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

Reads an instance of StorageCapability from the JsonReader.

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.

StorageCapabilityStorageAccountType storageAccountType()

Get the storageAccountType property: The storage account type for the database's backups.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

StorageCapability

public StorageCapability()

Creates an instance of StorageCapability class.

Method Details

fromJson

public static StorageCapability fromJson(JsonReader jsonReader)

Reads an instance of StorageCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

storageAccountType

public StorageCapabilityStorageAccountType storageAccountType()

Get the storageAccountType property: The storage account type for the database's backups.

Returns:

the storageAccountType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public StorageCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the StorageCapability object itself.

Applies to