Class ThroughputSettingsGetPropertiesResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputSettingsResource
com.azure.resourcemanager.cosmos.models.ThroughputSettingsGetPropertiesResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ThroughputSettingsResource>
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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ThroughputSettingsGetPropertiesResource from the JsonReader.Get the instantMaximumThroughput property: The offer throughput value to instantly scale up without triggering splits.Get the minimumThroughput property: The minimum throughput of the resource.Get the offerReplacePending property: The throughput replace is pending.rid()Get the rid property: A system generated property.Get the softAllowedMaximumThroughput property: The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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, throughputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
softAllowedMaximumThroughput
Get the softAllowedMaximumThroughput property: The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified.- Overrides:
softAllowedMaximumThroughputin classThroughputSettingsResource- Returns:
- the softAllowedMaximumThroughput value.
-
instantMaximumThroughput
Get the instantMaximumThroughput property: The offer throughput value to instantly scale up without triggering splits.- Overrides:
instantMaximumThroughputin classThroughputSettingsResource- Returns:
- the instantMaximumThroughput value.
-
offerReplacePending
Get the offerReplacePending property: The throughput replace is pending.- Overrides:
offerReplacePendingin classThroughputSettingsResource- Returns:
- the offerReplacePending value.
-
minimumThroughput
Get the minimumThroughput property: The minimum throughput of the resource.- Overrides:
minimumThroughputin classThroughputSettingsResource- Returns:
- the minimumThroughput 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ThroughputSettingsResource>- Overrides:
toJsonin classThroughputSettingsResource- Throws:
IOException
-
fromJson
public static ThroughputSettingsGetPropertiesResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ThroughputSettingsGetPropertiesResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ThroughputSettingsGetPropertiesResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ThroughputSettingsGetPropertiesResource.
-