Class RestorableSqlContainerPropertiesResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.RestorableSqlContainerPropertiesResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorableSqlContainerPropertiesResource>
public final class RestorableSqlContainerPropertiesResource
extends Object
implements com.azure.json.JsonSerializable<RestorableSqlContainerPropertiesResource>
The resource of an Azure Cosmos DB SQL container event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorableSqlContainerPropertiesResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the canUndelete property: A state of this container to identify if this container is restorable in same account.Get the canUndeleteReason property: The reason why this container can not be restored in same account.Get the container property: Cosmos DB SQL container resource object.Get the eventTimestamp property: The when this container event happened.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RestorableSqlContainerPropertiesResource from the JsonReader.Get the operationType property: The operation type of this container event.ownerId()
Get the ownerId property: The name of this SQL container.Get the ownerResourceId property: The resource ID of this SQL container.rid()
Get the rid property: A system generated property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the container property: Cosmos DB SQL container resource object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RestorableSqlContainerPropertiesResource
public RestorableSqlContainerPropertiesResource()Creates an instance of RestorableSqlContainerPropertiesResource class.
-
-
Method Details
-
rid
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
operationType
Get the operationType property: The operation type of this container event.- Returns:
- the operationType value.
-
canUndelete
Get the canUndelete property: A state of this container to identify if this container is restorable in same account.- Returns:
- the canUndelete value.
-
canUndeleteReason
Get the canUndeleteReason property: The reason why this container can not be restored in same account.- Returns:
- the canUndeleteReason value.
-
eventTimestamp
Get the eventTimestamp property: The when this container event happened.- Returns:
- the eventTimestamp value.
-
ownerId
Get the ownerId property: The name of this SQL container.- Returns:
- the ownerId value.
-
ownerResourceId
Get the ownerResourceId property: The resource ID of this SQL container.- Returns:
- the ownerResourceId value.
-
container
Get the container property: Cosmos DB SQL container resource object.- Returns:
- the container value.
-
withContainer
public RestorableSqlContainerPropertiesResource withContainer(RestorableSqlContainerPropertiesResourceContainer container) Set the container property: Cosmos DB SQL container resource object.- Parameters:
container
- the container value to set.- Returns:
- the RestorableSqlContainerPropertiesResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RestorableSqlContainerPropertiesResource>
- Throws:
IOException
-
fromJson
public static RestorableSqlContainerPropertiesResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorableSqlContainerPropertiesResource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RestorableSqlContainerPropertiesResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RestorableSqlContainerPropertiesResource.
-