Class OptionsResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.OptionsResource
- Direct Known Subclasses:
CassandraKeyspaceGetPropertiesOptions,CassandraTableGetPropertiesOptions,GremlinDatabaseGetPropertiesOptions,GremlinGraphGetPropertiesOptions,MongoDBCollectionGetPropertiesOptions,MongoDBDatabaseGetPropertiesOptions,SqlContainerGetPropertiesOptions,SqlDatabaseGetPropertiesOptions,TableGetPropertiesOptions
Cosmos DB options resource object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoscaleSettings property: Specifies the Autoscale settings.Get the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.voidvalidate()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.
-
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.
-