OfferV2 Class
- java.
lang. Object - Serializable
public class OfferV2 extends Offer
Represents an offer version 2 in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
OfferV2(int offerThroughput) |
Initialize an new instance of the OfferV2 object. |
OfferV2(int offerThroughput, boolean offerEnableRUPerMinuteThroughput) |
Initialize an new instance of the OfferV2 object. |
OfferV2(Offer otherOffer) |
Initialize an new instance of the OfferV2 object, copy the base properties from another Offer object and set the throughput value. |
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. |
Inherited Members
Constructor Details
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:
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:
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