Package com.azure.cosmos.models
Class ThroughputProperties
java.lang.Object
com.azure.cosmos.models.ThroughputProperties
Represents throughput of the resources in the Azure Cosmos DB service.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThroughputProperties
createAutoscaledThroughput
(int autoScaleMaxThroughput) Create auto scaled provisioned throughput throughput properties.static ThroughputProperties
createManualThroughput
(int throughput) Create fixed throughput properties.int
Gets max auto-scale throughput.getETag()
Get the entity tag associated with the resource.getId()
Gets the name of the resource.Gets offer throughput.Get the last modified timestamp associated with the resource.
-
Method Details
-
createManualThroughput
Create fixed throughput properties.- Parameters:
throughput
- the throughput- Returns:
- the throughput properties
-
createAutoscaledThroughput
Create auto scaled provisioned throughput throughput properties.- Parameters:
autoScaleMaxThroughput
- the max auto scale throughput- Returns:
- the throughput properties
-
getManualThroughput
Gets offer throughput.- Returns:
- the offer throughput
-
getAutoscaleMaxThroughput
public int getAutoscaleMaxThroughput()Gets max auto-scale throughput.- Returns:
- the max auto-scale throughput
-
getId
Gets the name of the resource. This is only relevant when getting response from the server.- Returns:
- the name of the resource.
-
getTimestamp
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-