public class Offer extends Resource
Constructor and Description |
---|
Offer(int offerThroughput)
Initialize an new instance of the Offer object.
|
Offer(String jsonString)
Initialize an offer object from json string.
|
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.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public Offer(int offerThroughput)
offerThroughput
- the throughput value for this offer.public Offer(String jsonString)
jsonString
- the json string that represents the offer.public String getResourceLink()
public String getOfferResourceId()
public String getOfferType()
public void setOfferType(String offerType)
offerType
- the offer type.public String getOfferVersion()
public void setOfferVersion(String offerVersion)
offerVersion
- the version of the offer.public int getThroughput()
public void setThroughput(int throughput)
throughput
- the throughput of this offer.Copyright © 2018. All rights reserved.