Class GremlinGraphGetPropertiesResource

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

public final class GremlinGraphGetPropertiesResource extends GremlinGraphResource
The GremlinGraphGetPropertiesResource model.
  • Constructor Details

    • GremlinGraphGetPropertiesResource

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

    • rid

      public String rid()
      Get the rid property: A system generated property. A unique identifier.
      Returns:
      the rid value.
    • ts

      public Float ts()
      Get the ts property: A system generated property that denotes the last updated timestamp of the resource.
      Returns:
      the ts value.
    • etag

      public String etag()
      Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.
      Returns:
      the etag value.
    • withId

      Set the id property: Name of the Cosmos DB Gremlin graph.
      Overrides:
      withId in class GremlinGraphResource
      Parameters:
      id - the id value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withIndexingPolicy

      public GremlinGraphGetPropertiesResource withIndexingPolicy(IndexingPolicy indexingPolicy)
      Set the indexingPolicy property: The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph.
      Overrides:
      withIndexingPolicy in class GremlinGraphResource
      Parameters:
      indexingPolicy - the indexingPolicy value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withPartitionKey

      public GremlinGraphGetPropertiesResource withPartitionKey(ContainerPartitionKey partitionKey)
      Set the partitionKey property: The configuration of the partition key to be used for partitioning data into multiple partitions.
      Overrides:
      withPartitionKey in class GremlinGraphResource
      Parameters:
      partitionKey - the partitionKey value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withDefaultTtl

      public GremlinGraphGetPropertiesResource withDefaultTtl(Integer defaultTtl)
      Set the defaultTtl property: Default time to live.
      Overrides:
      withDefaultTtl in class GremlinGraphResource
      Parameters:
      defaultTtl - the defaultTtl value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withUniqueKeyPolicy

      public GremlinGraphGetPropertiesResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)
      Set the uniqueKeyPolicy property: The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
      Overrides:
      withUniqueKeyPolicy in class GremlinGraphResource
      Parameters:
      uniqueKeyPolicy - the uniqueKeyPolicy value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withConflictResolutionPolicy

      public GremlinGraphGetPropertiesResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy)
      Set the conflictResolutionPolicy property: The conflict resolution policy for the graph.
      Overrides:
      withConflictResolutionPolicy in class GremlinGraphResource
      Parameters:
      conflictResolutionPolicy - the conflictResolutionPolicy value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withAnalyticalStorageTtl

      public GremlinGraphGetPropertiesResource withAnalyticalStorageTtl(Long analyticalStorageTtl)
      Set the analyticalStorageTtl property: Analytical TTL.
      Overrides:
      withAnalyticalStorageTtl in class GremlinGraphResource
      Parameters:
      analyticalStorageTtl - the analyticalStorageTtl value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withRestoreParameters

      public GremlinGraphGetPropertiesResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
      Set the restoreParameters property: Parameters to indicate the information about the restore.
      Overrides:
      withRestoreParameters in class GremlinGraphResource
      Parameters:
      restoreParameters - the restoreParameters value to set.
      Returns:
      the GremlinGraphResource object itself.
    • withCreateMode

      public GremlinGraphGetPropertiesResource withCreateMode(CreateMode createMode)
      Set the createMode property: Enum to indicate the mode of resource creation.
      Overrides:
      withCreateMode in class GremlinGraphResource
      Parameters:
      createMode - the createMode value to set.
      Returns:
      the GremlinGraphResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class GremlinGraphResource
      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<GremlinGraphResource>
      Overrides:
      toJson in class GremlinGraphResource
      Throws:
      IOException
    • fromJson

      public static GremlinGraphGetPropertiesResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GremlinGraphGetPropertiesResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GremlinGraphGetPropertiesResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the GremlinGraphGetPropertiesResource.