Class CassandraKeyspaceGetPropertiesOptions

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

public final class CassandraKeyspaceGetPropertiesOptions extends OptionsResource
The CassandraKeyspaceGetPropertiesOptions model.
  • Constructor Details

    • CassandraKeyspaceGetPropertiesOptions

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

    • withThroughput

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

      public CassandraKeyspaceGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
      Set the autoscaleSettings property: Specifies the Autoscale settings.
      Overrides:
      withAutoscaleSettings in class OptionsResource
      Parameters:
      autoscaleSettings - the autoscaleSettings value to set.
      Returns:
      the OptionsResource object itself.
    • validate

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

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