Class CreateUpdateOptions
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.CreateUpdateOptions
-
public final class CreateUpdateOptions extends Object
CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" and "Throughput".
-
-
Constructor Summary
Constructors Constructor Description CreateUpdateOptions()
-
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: Request Units per second.voidvalidate()Validates the instance.CreateUpdateOptionswithAutoscaleSettings(AutoscaleSettings autoscaleSettings)Set the autoscaleSettings property: Specifies the Autoscale settings.CreateUpdateOptionswithThroughput(Integer throughput)Set the throughput property: Request Units per second.
-
-
-
Method Detail
-
throughput
public Integer throughput()
Get the throughput property: Request Units per second. For example, "throughput": 10000.- Returns:
- the throughput value.
-
withThroughput
public CreateUpdateOptions withThroughput(Integer throughput)
Set the throughput property: Request Units per second. For example, "throughput": 10000.- Parameters:
throughput- the throughput value to set.- Returns:
- the CreateUpdateOptions object itself.
-
autoscaleSettings
public AutoscaleSettings autoscaleSettings()
Get the autoscaleSettings property: Specifies the Autoscale settings.- Returns:
- the autoscaleSettings value.
-
withAutoscaleSettings
public CreateUpdateOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscaleSettings property: Specifies the Autoscale settings.- Parameters:
autoscaleSettings- the autoscaleSettings value to set.- Returns:
- the CreateUpdateOptions object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-