Offer 类

定义

Represents the offer for a resource in the Azure Cosmos DB database service.

public class Offer extends Resource
继承
java.lang.Object
Serializable
Offer

继承成员

构造函数

Offer()

Initialize an offer object.

Offer(JSONObject jsonObject)

Initialize an offer object from json object.

Offer(Offer otherOffer)

Initialize an offer object and copy all properties from the other offer.

Offer(String jsonString)

Initialize an offer object from json string.

方法

getContent()

Gets the content object that contains the details of the offer.

getOfferResourceId()

Sets the target resource id of a resource to which this offer applies.

getOfferType()

Gets the OfferType for the resource offer.

getOfferVersion()

Gets the version of the current offer.

getResourceLink()

Gets the self-link of a resource to which the resource offer applies.

setContent(JSONObject offerContent)

Sets the offer content that contains the details of the offer.

setOfferType(String offerType)

Sets the OfferType for the resource offer.

setOfferVersion(String offerVersion)

Sets the offer version.

适用于