Partager via


RestorableSqlContainerPropertiesResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.RestorableSqlContainerPropertiesResource

Implements

public final class RestorableSqlContainerPropertiesResource
implements JsonSerializable<RestorableSqlContainerPropertiesResource>

The resource of an Azure Cosmos DB SQL container event.

Constructor Summary

Constructor Description
RestorableSqlContainerPropertiesResource()

Creates an instance of RestorableSqlContainerPropertiesResource class.

Method Summary

Modifier and Type Method and Description
String canUndelete()

Get the canUndelete property: A state of this container to identify if this container is restorable in same account.

String canUndeleteReason()

Get the canUndeleteReason property: The reason why this container can not be restored in same account.

RestorableSqlContainerPropertiesResourceContainer container()

Get the container property: Cosmos DB SQL container resource object.

String eventTimestamp()

Get the eventTimestamp property: The when this container event happened.

static RestorableSqlContainerPropertiesResource fromJson(JsonReader jsonReader)

Reads an instance of RestorableSqlContainerPropertiesResource from the JsonReader.

OperationType operationType()

Get the operationType property: The operation type of this container event.

String ownerId()

Get the ownerId property: The name of this SQL container.

String ownerResourceId()

Get the ownerResourceId property: The resource ID of this SQL container.

String rid()

Get the rid property: A system generated property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableSqlContainerPropertiesResource withContainer(RestorableSqlContainerPropertiesResourceContainer container)

Set the container property: Cosmos DB SQL container resource object.

Methods inherited from java.lang.Object

Constructor Details

RestorableSqlContainerPropertiesResource

public RestorableSqlContainerPropertiesResource()

Creates an instance of RestorableSqlContainerPropertiesResource class.

Method Details

canUndelete

public String 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

public String canUndeleteReason()

Get the canUndeleteReason property: The reason why this container can not be restored in same account.

Returns:

the canUndeleteReason value.

container

public RestorableSqlContainerPropertiesResourceContainer container()

Get the container property: Cosmos DB SQL container resource object.

Returns:

the container value.

eventTimestamp

public String eventTimestamp()

Get the eventTimestamp property: The when this container event happened.

Returns:

the eventTimestamp value.

fromJson

public static RestorableSqlContainerPropertiesResource fromJson(JsonReader jsonReader)

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.

operationType

public OperationType operationType()

Get the operationType property: The operation type of this container event.

Returns:

the operationType value.

ownerId

public String ownerId()

Get the ownerId property: The name of this SQL container.

Returns:

the ownerId value.

ownerResourceId

public String ownerResourceId()

Get the ownerResourceId property: The resource ID of this SQL container.

Returns:

the ownerResourceId value.

rid

public String rid()

Get the rid property: A system generated property. A unique identifier.

Returns:

the rid value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to