CreateUpdateOptions Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CreateUpdateOptions
- com.
Implements
public final class CreateUpdateOptions
implements JsonSerializable<CreateUpdateOptions>
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
| Constructor | Description |
|---|---|
| CreateUpdateOptions() |
Creates an instance of Create |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Autoscale |
autoscaleSettings()
Get the autoscale |
|
static
Create |
fromJson(JsonReader jsonReader)
Reads an instance of Create |
| Integer |
throughput()
Get the throughput property: Request Units per second. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Create |
withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscale |
|
Create |
withThroughput(Integer throughput)
Set the throughput property: Request Units per second. |
Methods inherited from java.lang.Object
Constructor Details
CreateUpdateOptions
public CreateUpdateOptions()
Creates an instance of CreateUpdateOptions class.
Method Details
autoscaleSettings
public AutoscaleSettings autoscaleSettings()
Get the autoscaleSettings property: Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
Returns:
fromJson
public static CreateUpdateOptions fromJson(JsonReader jsonReader)
Reads an instance of CreateUpdateOptions from the JsonReader.
Parameters:
Returns:
Throws:
throughput
public Integer throughput()
Get the throughput property: Request Units per second. For example, "throughput": 10000.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoscaleSettings
public CreateUpdateOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscaleSettings property: Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
Parameters:
Returns:
withThroughput
public CreateUpdateOptions withThroughput(Integer throughput)
Set the throughput property: Request Units per second. For example, "throughput": 10000.
Parameters:
Returns: