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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기