ThroughputSettingsResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ThroughputSettingsResource
- com.
Implements
public class ThroughputSettingsResource
implements JsonSerializable<ThroughputSettingsResource>
Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.
Constructor Summary
Constructor | Description |
---|---|
ThroughputSettingsResource() |
Creates an instance of Throughput |
Method Summary
Modifier and Type | Method and Description |
---|---|
Autoscale |
autoscaleSettings()
Get the autoscale |
static
Throughput |
fromJson(JsonReader jsonReader)
Reads an instance of Throughput |
String |
instantMaximumThroughput()
Get the instant |
String |
minimumThroughput()
Get the minimum |
String |
offerReplacePending()
Get the offer |
String |
softAllowedMaximumThroughput()
Get the soft |
Integer |
throughput()
Get the throughput property: Value of the Cosmos DB resource throughput. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Throughput |
withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings)
Set the autoscale |
Throughput |
withThroughput(Integer throughput)
Set the throughput property: Value of the Cosmos DB resource throughput. |
Methods inherited from java.lang.Object
Constructor Details
ThroughputSettingsResource
public ThroughputSettingsResource()
Creates an instance of ThroughputSettingsResource class.
Method Details
autoscaleSettings
public AutoscaleSettingsResource autoscaleSettings()
Get the autoscaleSettings property: Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.
Returns:
fromJson
public static ThroughputSettingsResource fromJson(JsonReader jsonReader)
Reads an instance of ThroughputSettingsResource from the JsonReader.
Parameters:
Returns:
Throws:
instantMaximumThroughput
public String instantMaximumThroughput()
Get the instantMaximumThroughput property: The offer throughput value to instantly scale up without triggering splits.
Returns:
minimumThroughput
public String minimumThroughput()
Get the minimumThroughput property: The minimum throughput of the resource.
Returns:
offerReplacePending
public String offerReplacePending()
Get the offerReplacePending property: The throughput replace is pending.
Returns:
softAllowedMaximumThroughput
public String softAllowedMaximumThroughput()
Get the softAllowedMaximumThroughput property: The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified.
Returns:
throughput
public Integer throughput()
Get the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoscaleSettings
public ThroughputSettingsResource withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings)
Set the autoscaleSettings property: Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.
Parameters:
Returns:
withThroughput
public ThroughputSettingsResource withThroughput(Integer throughput)
Set the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.
Parameters:
Returns:
Applies to
Azure SDK for Java