RestorableMongodbDatabasePropertiesResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. RestorableMongodbDatabasePropertiesResource
- com.
Implements
public final class RestorableMongodbDatabasePropertiesResource
implements JsonSerializable<RestorableMongodbDatabasePropertiesResource>
The resource of an Azure Cosmos DB MongoDB database event.
Constructor Summary
Constructor | Description |
---|---|
RestorableMongodbDatabasePropertiesResource() |
Creates an instance of Restorable |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
canUndelete()
Get the can |
String |
canUndeleteReason()
Get the can |
String |
eventTimestamp()
Get the event |
static
Restorable |
fromJson(JsonReader jsonReader)
Reads an instance of Restorable |
Operation |
operationType()
Get the operation |
String |
ownerId()
Get the owner |
String |
ownerResourceId()
Get the owner |
String |
rid()
Get the rid property: A system generated property. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
RestorableMongodbDatabasePropertiesResource
public RestorableMongodbDatabasePropertiesResource()
Creates an instance of RestorableMongodbDatabasePropertiesResource class.
Method Details
canUndelete
public String canUndelete()
Get the canUndelete property: A state of this database to identify if this database is restorable in same account.
Returns:
canUndeleteReason
public String canUndeleteReason()
Get the canUndeleteReason property: The reason why this database can not be restored in same account.
Returns:
eventTimestamp
public String eventTimestamp()
Get the eventTimestamp property: The time when this database event happened.
Returns:
fromJson
public static RestorableMongodbDatabasePropertiesResource fromJson(JsonReader jsonReader)
Reads an instance of RestorableMongodbDatabasePropertiesResource from the JsonReader.
Parameters:
Returns:
Throws:
operationType
public OperationType operationType()
Get the operationType property: The operation type of this database event.
Returns:
ownerId
public String ownerId()
Get the ownerId property: The name of this MongoDB database.
Returns:
ownerResourceId
public String ownerResourceId()
Get the ownerResourceId property: The resource ID of this MongoDB database.
Returns:
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java