Class ThroughputSettingsGetPropertiesResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
com.azure.resourcemanager.cosmos.models.ThroughputSettingsGetPropertiesResource
The ThroughputSettingsGetPropertiesResource model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ThroughputSettingsGetPropertiesResource class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.rid()Get the rid property: A system generated property.ts()Get the ts property: A system generated property that denotes the last updated timestamp of the resource.voidvalidate()Validates the instance.withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings) Set the autoscaleSettings property: Cosmos DB resource for autoscale settings.withThroughput(Integer throughput) Set the throughput property: Value of the Cosmos DB resource throughput.Methods inherited from class com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
autoscaleSettings, instantMaximumThroughput, minimumThroughput, offerReplacePending, softAllowedMaximumThroughput, throughput
-
Constructor Details
-
ThroughputSettingsGetPropertiesResource
public ThroughputSettingsGetPropertiesResource()Creates an instance of ThroughputSettingsGetPropertiesResource class.
-
-
Method Details
-
rid
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
ts
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.- Returns:
- the ts value.
-
etag
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.- Returns:
- the etag value.
-
withThroughput
Set the throughput property: Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.- Overrides:
withThroughputin classThroughputSettingsResource- Parameters:
throughput- the throughput value to set.- Returns:
- the ThroughputSettingsResource object itself.
-
withAutoscaleSettings
public ThroughputSettingsGetPropertiesResource withAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings) Set the autoscaleSettings property: Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.- Overrides:
withAutoscaleSettingsin classThroughputSettingsResource- Parameters:
autoscaleSettings- the autoscaleSettings value to set.- Returns:
- the ThroughputSettingsResource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classThroughputSettingsResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-