你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OfferV2 Class

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

otherOffer - the Offer object whose base properties are to be copied.

OfferV2

public OfferV2(int offerThroughput)

Initialize an new instance of the OfferV2 object.

Parameters:

offerThroughput - the throughput value for this offer.

OfferV2

public OfferV2(int offerThroughput, boolean offerEnableRUPerMinuteThroughput)

Initialize an new instance of the OfferV2 object.

Parameters:

offerThroughput - the throughput value for this offer.
offerEnableRUPerMinuteThroughput - if RU Per Minute throughput is enabled

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:

true if RUPerMin is enabled; otherwise false.

getOfferThroughput

public int getOfferThroughput()

Gets the offer throughput for this offer.

Returns:

the offer throughput.

setOfferEnableRUPerMinuteThroughput

public void setOfferEnableRUPerMinuteThroughput(boolean offerEnableRUPerMinuteThroughput)

Sets Request Units(RU)/Minute throughput enabled/disabled for collection in the Azure Cosmos DB database service.

Parameters:

offerEnableRUPerMinuteThroughput - used for enabling or disabling option.

setOfferThroughput

public void setOfferThroughput(int throughput)

Sets the offer throughput for this offer.

Parameters:

throughput - the throughput of this offer.

Applies to