Class ThroughputSettingsResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
-
- Direct Known Subclasses:
ThroughputSettingsGetPropertiesResource
public class ThroughputSettingsResource extends Object
Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.
-
-
Constructor Summary
Constructors Constructor Description ThroughputSettingsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoscaleSettingsResourceautoscaleSettings()Get the autoscaleSettings property: Cosmos DB resource for autoscale settings.StringminimumThroughput()Get the minimumThroughput property: The minimum throughput of the resource.StringofferReplacePending()Get the offerReplacePending property: The throughput replace is pending.Integerthroughput()Get the throughput property: Value of the Cosmos DB resource throughput.voidvalidate()Validates the instance.ThroughputSettingsResourcewithAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings)Set the autoscaleSettings property: Cosmos DB resource for autoscale settings.ThroughputSettingsResourcewithThroughput(Integer throughput)Set the throughput property: Value of the Cosmos DB resource throughput.
-
-
-
Method Detail
-
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:
- the throughput value.
-
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:
throughput- the throughput value to set.- Returns:
- the ThroughputSettingsResource object itself.
-
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:
- 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
public String minimumThroughput()
Get the minimumThroughput property: The minimum throughput of the resource.- Returns:
- the minimumThroughput value.
-
offerReplacePending
public String offerReplacePending()
Get the offerReplacePending property: The throughput replace is pending.- Returns:
- the offerReplacePending value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-