Class RestorableDatabaseAccountGetResultInner
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.fluent.models.RestorableDatabaseAccountGetResultInner
-
public final class RestorableDatabaseAccountGetResultInner extends Object
A Azure Cosmos DB restorable database account.
-
-
Constructor Summary
Constructors Constructor Description RestorableDatabaseAccountGetResultInner()
-
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).Stringid()Get the id property: The unique resource identifier of the ARM resource.Stringlocation()Get the location property: The location of the resource group to which the resource belongs.Stringname()Get the name property: The name of the ARM resource.List<RestorableLocationResource>restorableLocations()Get the restorableLocations property: List of regions where the of the database account can be restored from.Stringtype()Get the type property: The type of Azure resource.voidvalidate()Validates the instance.RestorableDatabaseAccountGetResultInnerwithAccountName(String accountName)Set the accountName property: The name of the global database account.RestorableDatabaseAccountGetResultInnerwithCreationTime(OffsetDateTime creationTime)Set the creationTime property: The creation time of the restorable database account (ISO-8601 format).RestorableDatabaseAccountGetResultInnerwithDeletionTime(OffsetDateTime deletionTime)Set the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).RestorableDatabaseAccountGetResultInnerwithLocation(String location)Set the location property: The location of the resource group to which the resource belongs.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The unique resource identifier of the ARM resource.- Returns:
- the id value.
-
name
public String name()
Get the name property: The name of the ARM resource.- Returns:
- the name value.
-
type
public String type()
Get the type property: The type of Azure resource.- Returns:
- the type value.
-
location
public String location()
Get the location property: The location of the resource group to which the resource belongs.- Returns:
- the location value.
-
withLocation
public RestorableDatabaseAccountGetResultInner withLocation(String location)
Set the location property: The location of the resource group to which the resource belongs.- Parameters:
location- the location value to set.- Returns:
- the RestorableDatabaseAccountGetResultInner object itself.
-
accountName
public String accountName()
Get the accountName property: The name of the global database account.- Returns:
- the accountName value.
-
withAccountName
public RestorableDatabaseAccountGetResultInner withAccountName(String accountName)
Set the accountName property: The name of the global database account.- Parameters:
accountName- the accountName value to set.- Returns:
- the RestorableDatabaseAccountGetResultInner 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 RestorableDatabaseAccountGetResultInner 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 RestorableDatabaseAccountGetResultInner 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 RestorableDatabaseAccountGetResultInner 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 RestorableDatabaseAccountGetResultInner 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.
-
-