Class ThroughputProperties

java.lang.Object
com.azure.cosmos.models.ThroughputProperties

public class ThroughputProperties extends Object
Represents throughput of the resources in the Azure Cosmos DB service.
  • Method Details

    • createManualThroughput

      public static ThroughputProperties createManualThroughput(int throughput)
      Create fixed throughput properties.
      Parameters:
      throughput - the throughput
      Returns:
      the throughput properties
    • createAutoscaledThroughput

      public static ThroughputProperties createAutoscaledThroughput(int autoScaleMaxThroughput)
      Create auto scaled provisioned throughput throughput properties.
      Parameters:
      autoScaleMaxThroughput - the max auto scale throughput
      Returns:
      the throughput properties
    • getManualThroughput

      public Integer getManualThroughput()
      Gets offer throughput.
      Returns:
      the offer throughput
    • getAutoscaleMaxThroughput

      public int getAutoscaleMaxThroughput()
      Gets max auto-scale throughput.
      Returns:
      the max auto-scale throughput
    • getId

      public String getId()
      Gets the name of the resource. This is only relevant when getting response from the server.
      Returns:
      the name of the resource.
    • getTimestamp

      public Instant getTimestamp()
      Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
      Returns:
      the timestamp.
    • getETag

      public String getETag()
      Get the entity tag associated with the resource. This is only relevant when getting response from the server.
      Returns:
      the e tag.