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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoscaleSettings property: Specifies the Autoscale settings.static OptionsResource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OptionsResource from the JsonReader.Get the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAutoscaleSettings
(AutoscaleSettings autoscaleSettings) Set the autoscaleSettings property: Specifies the Autoscale settings.withThroughput
(Integer throughput) Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OptionsResource
public OptionsResource()Creates an instance of OptionsResource class.
-
-
Method Details
-
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
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
Get the autoscaleSettings property: Specifies the Autoscale settings.- Returns:
- the autoscaleSettings value.
-
withAutoscaleSettings
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OptionsResource>
- Throws:
IOException
-
fromJson
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.
-