Class ThroughputSettingsGetPropertiesResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
-
- com.azure.resourcemanager.cosmos.models.ThroughputSettingsGetPropertiesResource
-
public final class ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource
The ThroughputSettingsGetPropertiesResource model.
-
-
Constructor Summary
Constructors Constructor Description ThroughputSettingsGetPropertiesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.Stringrid()Get the rid property: A system generated property.Floatts()Get the ts property: A system generated property that denotes the last updated timestamp of the resource.voidvalidate()Validates the instance.ThroughputSettingsGetPropertiesResourcewithAutoscaleSettings(AutoscaleSettingsResource autoscaleSettings)Set the autoscaleSettings property: Cosmos DB resource for autoscale settings.ThroughputSettingsGetPropertiesResourcewithThroughput(Integer throughput)Set the throughput property: Value of the Cosmos DB resource throughput.-
Methods inherited from class com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
autoscaleSettings, minimumThroughput, offerReplacePending, throughput
-
-
-
-
Method Detail
-
rid
public String rid()
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
ts
public Float ts()
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.- Returns:
- the ts value.
-
etag
public String etag()
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.- Returns:
- the etag value.
-
withThroughput
public ThroughputSettingsGetPropertiesResource withThroughput(Integer throughput)
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.
-
-