Class RestorableTablePropertiesResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.RestorableTablePropertiesResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorableTablePropertiesResource>

public final class RestorableTablePropertiesResource extends Object implements com.azure.json.JsonSerializable<RestorableTablePropertiesResource>
The resource of an Azure Cosmos DB Table event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RestorableTablePropertiesResource class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the canUndelete property: A state of this table to identify if this table is restorable in same account.
    Get the canUndeleteReason property: The reason why this table can not be restored in same account.
    Get the eventTimestamp property: The time when this table event happened.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RestorableTablePropertiesResource from the JsonReader.
    Get the operationType property: The operation type of this table event.
    Get the ownerId property: The name of this Table.
    Get the ownerResourceId property: The resource ID of this Table.
    rid()
    Get the rid property: A system generated property.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    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

    • RestorableTablePropertiesResource

      public RestorableTablePropertiesResource()
      Creates an instance of RestorableTablePropertiesResource class.
  • Method Details

    • 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 table event.
      Returns:
      the operationType value.
    • canUndelete

      public String canUndelete()
      Get the canUndelete property: A state of this table to identify if this table is restorable in same account.
      Returns:
      the canUndelete value.
    • canUndeleteReason

      public String canUndeleteReason()
      Get the canUndeleteReason property: The reason why this table can not be restored in same account.
      Returns:
      the canUndeleteReason value.
    • eventTimestamp

      public String eventTimestamp()
      Get the eventTimestamp property: The time when this table event happened.
      Returns:
      the eventTimestamp value.
    • ownerId

      public String ownerId()
      Get the ownerId property: The name of this Table.
      Returns:
      the ownerId value.
    • ownerResourceId

      public String ownerResourceId()
      Get the ownerResourceId property: The resource ID of this Table.
      Returns:
      the ownerResourceId value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RestorableTablePropertiesResource>
      Throws:
      IOException
    • fromJson

      public static RestorableTablePropertiesResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RestorableTablePropertiesResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RestorableTablePropertiesResource 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 RestorableTablePropertiesResource.