Class RestorableSqlDatabasePropertiesResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.RestorableSqlDatabasePropertiesResource
-
public final class RestorableSqlDatabasePropertiesResource extends Object
The resource of an Azure Cosmos DB SQL database event.
-
-
Constructor Summary
Constructors Constructor Description RestorableSqlDatabasePropertiesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestorableSqlDatabasePropertiesResourceDatabasedatabase()Get the database property: Cosmos DB SQL database resource object.StringeventTimestamp()Get the eventTimestamp property: The time when this database event happened.OperationTypeoperationType()Get the operationType property: The operation type of this database event.StringownerId()Get the ownerId property: The name of the SQL database.StringownerResourceId()Get the ownerResourceId property: The resource ID of the SQL database.Stringrid()Get the rid property: A system generated property.voidvalidate()Validates the instance.RestorableSqlDatabasePropertiesResourcewithDatabase(RestorableSqlDatabasePropertiesResourceDatabase database)Set the database property: Cosmos DB SQL database resource object.
-
-
-
Method Detail
-
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
operationType
public OperationType operationType()
Get the operationType property: The operation type of this database event.- Returns:
- the operationType value.
-
eventTimestamp
public String eventTimestamp()
Get the eventTimestamp property: The time when this database event happened.- Returns:
- the eventTimestamp value.
-
ownerId
public String ownerId()
Get the ownerId property: The name of the SQL database.- Returns:
- the ownerId value.
-
ownerResourceId
public String ownerResourceId()
Get the ownerResourceId property: The resource ID of the SQL database.- Returns:
- the ownerResourceId value.
-
database
public RestorableSqlDatabasePropertiesResourceDatabase database()
Get the database property: Cosmos DB SQL database resource object.- Returns:
- the database value.
-
withDatabase
public RestorableSqlDatabasePropertiesResource withDatabase(RestorableSqlDatabasePropertiesResourceDatabase database)
Set the database property: Cosmos DB SQL database resource object.- Parameters:
database- the database value to set.- Returns:
- the RestorableSqlDatabasePropertiesResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-