OptionsResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. OptionsResource
- com.
Implements
public class OptionsResource
implements JsonSerializable<OptionsResource>
Cosmos DB options resource object.
Constructor Summary
Constructor | Description |
---|---|
OptionsResource() |
Creates an instance of Options |
Method Summary
Modifier and Type | Method and Description |
---|---|
Autoscale |
autoscaleSettings()
Get the autoscale |
static
Options |
fromJson(JsonReader jsonReader)
Reads an instance of Options |
Integer |
throughput()
Get the throughput property: Value of the Cosmos DB resource throughput or autoscale |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Options |
withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscale |
Options |
withThroughput(Integer throughput)
Set the throughput property: Value of the Cosmos DB resource throughput or autoscale |
Methods inherited from java.lang.Object
Constructor Details
OptionsResource
public OptionsResource()
Creates an instance of OptionsResource class.
Method Details
autoscaleSettings
public AutoscaleSettings autoscaleSettings()
Get the autoscaleSettings property: Specifies the Autoscale settings.
Returns:
fromJson
public static OptionsResource fromJson(JsonReader jsonReader)
Reads an instance of OptionsResource from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withAutoscaleSettings
public OptionsResource withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscaleSettings property: Specifies the Autoscale settings.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java