RestorableMongodbCollectionPropertiesResource Class

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

Implements

public final class RestorableMongodbCollectionPropertiesResource
implements JsonSerializable<RestorableMongodbCollectionPropertiesResource>

The resource of an Azure Cosmos DB MongoDB collection event.

Constructor Summary

Constructor Description
RestorableMongodbCollectionPropertiesResource()

Creates an instance of RestorableMongodbCollectionPropertiesResource class.

Method Summary

Modifier and Type Method and Description
String canUndelete()

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

String canUndeleteReason()

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

String eventTimestamp()

Get the eventTimestamp property: The time when this collection event happened.

static RestorableMongodbCollectionPropertiesResource fromJson(JsonReader jsonReader)

Reads an instance of RestorableMongodbCollectionPropertiesResource from the JsonReader.

OperationType operationType()

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

String ownerId()

Get the ownerId property: The name of this MongoDB collection.

String ownerResourceId()

Get the ownerResourceId property: The resource ID of this MongoDB collection.

String rid()

Get the rid property: A system generated property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

RestorableMongodbCollectionPropertiesResource

public RestorableMongodbCollectionPropertiesResource()

Creates an instance of RestorableMongodbCollectionPropertiesResource class.

Method Details

canUndelete

public String canUndelete()

Get the canUndelete property: A state of this collection 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 collection can not be restored in same account.

Returns:

the canUndeleteReason value.

eventTimestamp

public String eventTimestamp()

Get the eventTimestamp property: The time when this collection event happened.

Returns:

the eventTimestamp value.

fromJson

public static RestorableMongodbCollectionPropertiesResource fromJson(JsonReader jsonReader)

Reads an instance of RestorableMongodbCollectionPropertiesResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RestorableMongodbCollectionPropertiesResource 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 RestorableMongodbCollectionPropertiesResource.

operationType

public OperationType operationType()

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

Returns:

the operationType value.

ownerId

public String ownerId()

Get the ownerId property: The name of this MongoDB collection.

Returns:

the ownerId value.

ownerResourceId

public String ownerResourceId()

Get the ownerResourceId property: The resource ID of this MongoDB collection.

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.

Applies to