Class RestorableDatabaseAccountProperties
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.fluent.models.RestorableDatabaseAccountProperties
-
public final class RestorableDatabaseAccountProperties extends Object
The properties of a restorable database account.
-
-
Constructor Summary
Constructors Constructor Description RestorableDatabaseAccountProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountName()Get the accountName property: The name of the global database account.ApiTypeapiType()Get the apiType property: The API type of the restorable database account.OffsetDateTimecreationTime()Get the creationTime property: The creation time of the restorable database account (ISO-8601 format).OffsetDateTimedeletionTime()Get the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).List<RestorableLocationResource>restorableLocations()Get the restorableLocations property: List of regions where the of the database account can be restored from.voidvalidate()Validates the instance.RestorableDatabaseAccountPropertieswithAccountName(String accountName)Set the accountName property: The name of the global database account.RestorableDatabaseAccountPropertieswithCreationTime(OffsetDateTime creationTime)Set the creationTime property: The creation time of the restorable database account (ISO-8601 format).RestorableDatabaseAccountPropertieswithDeletionTime(OffsetDateTime deletionTime)Set the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).
-
-
-
Method Detail
-
accountName
public String accountName()
Get the accountName property: The name of the global database account.- Returns:
- the accountName value.
-
withAccountName
public RestorableDatabaseAccountProperties withAccountName(String accountName)
Set the accountName property: The name of the global database account.- Parameters:
accountName- the accountName value to set.- Returns:
- the RestorableDatabaseAccountProperties object itself.
-
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: The creation time of the restorable database account (ISO-8601 format).- Returns:
- the creationTime value.
-
withCreationTime
public RestorableDatabaseAccountProperties withCreationTime(OffsetDateTime creationTime)
Set the creationTime property: The creation time of the restorable database account (ISO-8601 format).- Parameters:
creationTime- the creationTime value to set.- Returns:
- the RestorableDatabaseAccountProperties object itself.
-
deletionTime
public OffsetDateTime deletionTime()
Get the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).- Returns:
- the deletionTime value.
-
withDeletionTime
public RestorableDatabaseAccountProperties withDeletionTime(OffsetDateTime deletionTime)
Set the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).- Parameters:
deletionTime- the deletionTime value to set.- Returns:
- the RestorableDatabaseAccountProperties object itself.
-
apiType
public ApiType apiType()
Get the apiType property: The API type of the restorable database account.- Returns:
- the apiType value.
-
restorableLocations
public List<RestorableLocationResource> restorableLocations()
Get the restorableLocations property: List of regions where the of the database account can be restored from.- Returns:
- the restorableLocations value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-