Class OptionsResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.OptionsResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<OptionsResource>
Direct Known Subclasses:
CassandraKeyspaceGetPropertiesOptions, CassandraTableGetPropertiesOptions, GremlinDatabaseGetPropertiesOptions, GremlinGraphGetPropertiesOptions, MongoDBCollectionGetPropertiesOptions, MongoDBDatabaseGetPropertiesOptions, SqlContainerGetPropertiesOptions, SqlDatabaseGetPropertiesOptions, TableGetPropertiesOptions

public class OptionsResource extends Object implements com.azure.json.JsonSerializable<OptionsResource>
Cosmos DB options resource object.
  • Constructor Details

    • OptionsResource

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

    • throughput

      public Integer throughput()
      Get the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
      Returns:
      the throughput value.
    • withThroughput

      public OptionsResource withThroughput(Integer throughput)
      Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
      Parameters:
      throughput - the throughput value to set.
      Returns:
      the OptionsResource object itself.
    • autoscaleSettings

      public AutoscaleSettings autoscaleSettings()
      Get the autoscaleSettings property: Specifies the Autoscale settings.
      Returns:
      the autoscaleSettings value.
    • withAutoscaleSettings

      public OptionsResource withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
      Set the autoscaleSettings property: Specifies the Autoscale settings.
      Parameters:
      autoscaleSettings - the autoscaleSettings value to set.
      Returns:
      the OptionsResource object itself.
    • 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<OptionsResource>
      Throws:
      IOException
    • fromJson

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