Class ThroughputSettingsGetPropertiesResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
com.azure.resourcemanager.cosmos.models.ThroughputSettingsGetPropertiesResource

public final class ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource
The ThroughputSettingsGetPropertiesResource model.
  • Constructor Details

    • ThroughputSettingsGetPropertiesResource

      public ThroughputSettingsGetPropertiesResource()
      Creates an instance of ThroughputSettingsGetPropertiesResource 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.
    • withThroughput

      public ThroughputSettingsGetPropertiesResource withThroughput(Integer throughput)
      Set the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.
      Overrides:
      withThroughput in class ThroughputSettingsResource
      Parameters:
      throughput - the throughput value to set.
      Returns:
      the ThroughputSettingsResource object itself.
    • withAutoscaleSettings

      public ThroughputSettingsGetPropertiesResource withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings)
      Set the autoscaleSettings property: Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.
      Overrides:
      withAutoscaleSettings in class ThroughputSettingsResource
      Parameters:
      autoscaleSettings - the autoscaleSettings value to set.
      Returns:
      the ThroughputSettingsResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ThroughputSettingsResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.