CreateUpdateOptions Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CreateUpdateOptions
- com.
public final class 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 |
Integer |
throughput()
Get the throughput property: Request Units per second. |
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:
throughput
public Integer throughput()
Get the throughput property: Request Units per second. For example, "throughput": 10000.
Returns:
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for