Class OptionsResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.OptionsResource
-
- Direct Known Subclasses:
CassandraKeyspaceGetPropertiesOptions,CassandraTableGetPropertiesOptions,GremlinDatabaseGetPropertiesOptions,GremlinGraphGetPropertiesOptions,MongoDBCollectionGetPropertiesOptions,MongoDBDatabaseGetPropertiesOptions,SqlContainerGetPropertiesOptions,SqlDatabaseGetPropertiesOptions,TableGetPropertiesOptions
public class OptionsResource extends Object
Cosmos DB options resource object.
-
-
Constructor Summary
Constructors Constructor Description OptionsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoscaleSettingsautoscaleSettings()Get the autoscaleSettings property: Specifies the Autoscale settings.Integerthroughput()Get the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.voidvalidate()Validates the instance.OptionsResourcewithAutoscaleSettings(AutoscaleSettings autoscaleSettings)Set the autoscaleSettings property: Specifies the Autoscale settings.OptionsResourcewithThroughput(Integer throughput)Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.
-
-
-
Method Detail
-
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.
-
-