RestorableDatabaseAccountGetResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. RestorableDatabaseAccountGetResultInner
- com.
Implements
public final class RestorableDatabaseAccountGetResultInner
implements JsonSerializable<RestorableDatabaseAccountGetResultInner>
A Azure Cosmos DB restorable database account.
Constructor Summary
Constructor | Description |
---|---|
RestorableDatabaseAccountGetResultInner() |
Creates an instance of Restorable |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
accountName()
Get the account |
Api |
apiType()
Get the api |
Offset |
creationTime()
Get the creation |
Offset |
deletionTime()
Get the deletion |
static
Restorable |
fromJson(JsonReader jsonReader)
Reads an instance of Restorable |
String |
id()
Get the id property: The unique resource identifier of the ARM resource. |
String |
location()
Get the location property: The location of the resource group to which the resource belongs. |
String |
name()
Get the name property: The name of the ARM resource. |
Offset |
oldestRestorableTime()
Get the oldest |
List<Restorable |
restorableLocations()
Get the restorable |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of Azure resource. |
void |
validate()
Validates the instance. |
Restorable |
withAccountName(String accountName)
Set the account |
Restorable |
withCreationTime(OffsetDateTime creationTime)
Set the creation |
Restorable |
withDeletionTime(OffsetDateTime deletionTime)
Set the deletion |
Restorable |
withLocation(String location)
Set the location property: The location of the resource group to which the resource belongs. |
Restorable |
withOldestRestorableTime(OffsetDateTime oldestRestorableTime)
Set the oldest |
Methods inherited from java.lang.Object
Constructor Details
RestorableDatabaseAccountGetResultInner
public RestorableDatabaseAccountGetResultInner()
Creates an instance of RestorableDatabaseAccountGetResultInner class.
Method Details
accountName
public String accountName()
Get the accountName property: The name of the global database account.
Returns:
apiType
public ApiType apiType()
Get the apiType property: The API type of the restorable database account.
Returns:
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: The creation time of the restorable database account (ISO-8601 format).
Returns:
deletionTime
public OffsetDateTime deletionTime()
Get the deletionTime property: The time at which the restorable database account has been deleted (ISO-8601 format).
Returns:
fromJson
public static RestorableDatabaseAccountGetResultInner fromJson(JsonReader jsonReader)
Reads an instance of RestorableDatabaseAccountGetResultInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The unique resource identifier of the ARM resource.
Returns:
location
public String location()
Get the location property: The location of the resource group to which the resource belongs.
Returns:
name
public String name()
Get the name property: The name of the ARM resource.
Returns:
oldestRestorableTime
public OffsetDateTime oldestRestorableTime()
Get the oldestRestorableTime property: The least recent time at which the database account can be restored to (ISO-8601 format).
Returns:
restorableLocations
public List
Get the restorableLocations property: List of regions where the of the database account can be restored from.
Returns:
toJson
type
public String type()
Get the type property: The type of Azure resource.
Returns:
validate
public void validate()
Validates the instance.
withAccountName
public RestorableDatabaseAccountGetResultInner withAccountName(String accountName)
Set the accountName property: The name of the global database account.
Parameters:
Returns:
withCreationTime
public RestorableDatabaseAccountGetResultInner withCreationTime(OffsetDateTime creationTime)
Set the creationTime property: The creation time of the restorable database account (ISO-8601 format).
Parameters:
Returns:
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:
Returns:
withLocation
public RestorableDatabaseAccountGetResultInner withLocation(String location)
Set the location property: The location of the resource group to which the resource belongs.
Parameters:
Returns:
withOldestRestorableTime
public RestorableDatabaseAccountGetResultInner withOldestRestorableTime(OffsetDateTime oldestRestorableTime)
Set the oldestRestorableTime property: The least recent time at which the database account can be restored to (ISO-8601 format).
Parameters:
Returns:
Applies to
Azure SDK for Java