CreateUpdateOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.CreateUpdateOptions

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 CreateUpdateOptions class.

Method Summary

Modifier and Type Method and Description
AutoscaleSettings autoscaleSettings()

Get the autoscaleSettings property: Specifies the Autoscale settings.

Integer throughput()

Get the throughput property: Request Units per second.

void validate()

Validates the instance.

CreateUpdateOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

CreateUpdateOptions 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:

the autoscaleSettings value.

throughput

public Integer throughput()

Get the throughput property: Request Units per second. For example, "throughput": 10000.

Returns:

the throughput value.

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:

autoscaleSettings - the autoscaleSettings value to set.

Returns:

the CreateUpdateOptions object itself.

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.

Applies to