Offer Class
- java.
lang. Object - JsonSerializable
- Resource
- com.
microsoft. azure. cosmosdb. Offer
- com.
public class Offer extends Resource
Represents an offer in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
Offer(int offerThroughput) |
Initialize an new instance of the Offer object. |
Offer(String jsonString) |
Initialize an offer object from json string. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getOfferResourceId()
Sets the target resource id of a resource to which this offer applies. |
String |
getOfferType()
Gets the OfferType for the resource offer. |
String |
getOfferVersion()
Gets the version of the current offer. |
String |
getResourceLink()
Gets the self-link of a resource to which the resource offer applies. |
int |
getThroughput()
Gets the offer throughput for this offer. |
void |
setOfferType(String offerType)
Sets the OfferType for the resource offer. |
void |
setOfferVersion(String offerVersion)
Sets the offer version. |
void |
setThroughput(int throughput)
Sets the offer throughput for this offer. |
Inherited Members
Constructor Details
Offer
public Offer(int offerThroughput)
Initialize an new instance of the Offer object.
Parameters:
Offer
public Offer(String jsonString)
Initialize an offer object from json string.
Parameters:
Method Details
getOfferResourceId
public String getOfferResourceId()
Sets the target resource id of a resource to which this offer applies.
Returns:
getOfferType
public String getOfferType()
Gets the OfferType for the resource offer.
Returns:
getOfferVersion
public String getOfferVersion()
Gets the version of the current offer.
Returns:
getResourceLink
public String getResourceLink()
Gets the self-link of a resource to which the resource offer applies.
Returns:
getThroughput
public int getThroughput()
Gets the offer throughput for this offer.
Returns:
setOfferType
public void setOfferType(String offerType)
Sets the OfferType for the resource offer.
Parameters:
setOfferVersion
public void setOfferVersion(String offerVersion)
Sets the offer version.
Parameters:
setThroughput
public void setThroughput(int throughput)
Sets the offer throughput for this offer.
Parameters:
Applies to
Azure SDK for Java