OfferV2 Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. Offer - com.
microsoft. azure. documentdb. OfferV2
- com.
- com.
- com.
- com.
public class OfferV2
extends Offer
Represents an offer version 2 in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
OfferV2(Offer otherOffer) |
Initialize an new instance of the OfferV2 object, copy the base properties from another Offer object and set the throughput value. |
OfferV2(int offerThroughput) |
Initialize an new instance of the OfferV2 object. |
OfferV2(int offerThroughput, boolean offerEnableRUPerMinuteThroughput) |
Initialize an new instance of the OfferV2 object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
getOfferEnableRUPerMinuteThroughput()
Gets Request Units(RU)/Minute throughput is enabled/disabled for collection in the Azure Cosmos DB database service. |
int |
getOfferThroughput()
Gets the offer throughput for this offer. |
void |
setOfferEnableRUPerMinuteThroughput(boolean offerEnableRUPerMinuteThroughput)
Sets Request Units(RU)/Minute throughput enabled/disabled for collection in the Azure Cosmos DB database service. |
void |
setOfferThroughput(int throughput)
Sets the offer throughput for this offer. |
Methods inherited from JsonSerializable
Methods inherited from Offer
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
OfferV2
public OfferV2(Offer otherOffer)
Initialize an new instance of the OfferV2 object, copy the base properties from another Offer object and set the throughput value.
Parameters:
OfferV2
public OfferV2(int offerThroughput)
Initialize an new instance of the OfferV2 object.
Parameters:
OfferV2
public OfferV2(int offerThroughput, boolean offerEnableRUPerMinuteThroughput)
Initialize an new instance of the OfferV2 object.
Parameters:
Method Details
getOfferEnableRUPerMinuteThroughput
public boolean getOfferEnableRUPerMinuteThroughput()
Gets Request Units(RU)/Minute throughput is enabled/disabled for collection in the Azure Cosmos DB database service.
Returns:
getOfferThroughput
public int getOfferThroughput()
Gets the offer throughput for this offer.
Returns:
setOfferEnableRUPerMinuteThroughput
public void setOfferEnableRUPerMinuteThroughput(boolean offerEnableRUPerMinuteThroughput)
Sets Request Units(RU)/Minute throughput enabled/disabled for collection in the Azure Cosmos DB database service.
Parameters:
setOfferThroughput
public void setOfferThroughput(int throughput)
Sets the offer throughput for this offer.
Parameters:
Applies to
Azure SDK for Java