Class ThroughputSettingsResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
- Direct Known Subclasses:
ThroughputSettingsGetPropertiesResource
Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ThroughputSettingsResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoscaleSettings property: Cosmos DB resource for autoscale settings.Get the instantMaximumThroughput property: The offer throughput value to instantly scale up without triggering splits.Get the minimumThroughput property: The minimum throughput of the resource.Get the offerReplacePending property: The throughput replace is pending.Get the softAllowedMaximumThroughput property: The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified.Get the throughput property: Value of the Cosmos DB resource throughput.voidvalidate()Validates the instance.withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings) Set the autoscaleSettings property: Cosmos DB resource for autoscale settings.withThroughput(Integer throughput) Set the throughput property: Value of the Cosmos DB resource throughput.
-
Constructor Details
-
ThroughputSettingsResource
public ThroughputSettingsResource()Creates an instance of ThroughputSettingsResource class.
-
-
Method Details
-
throughput
Get the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.- Returns:
- the throughput value.
-
withThroughput
Set the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.- Parameters:
throughput- the throughput value to set.- Returns:
- the ThroughputSettingsResource object itself.
-
autoscaleSettings
Get the autoscaleSettings property: Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.- Returns:
- the autoscaleSettings value.
-
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:
autoscaleSettings- the autoscaleSettings value to set.- Returns:
- the ThroughputSettingsResource object itself.
-
minimumThroughput
Get the minimumThroughput property: The minimum throughput of the resource.- Returns:
- the minimumThroughput value.
-
offerReplacePending
Get the offerReplacePending property: The throughput replace is pending.- Returns:
- the offerReplacePending value.
-
instantMaximumThroughput
Get the instantMaximumThroughput property: The offer throughput value to instantly scale up without triggering splits.- Returns:
- the instantMaximumThroughput value.
-
softAllowedMaximumThroughput
Get the softAllowedMaximumThroughput property: The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified.- Returns:
- the softAllowedMaximumThroughput value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-