@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OfferSummary extends Object implements Serializable, Cloneable, StructuredPojo
Summarized information about an offer.
Constructor and Description |
---|
OfferSummary() |
Modifier and Type | Method and Description |
---|---|
OfferSummary |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityEndDate()
The availability end date of the offer.
|
List<String> |
getBuyerAccounts()
The buyer accounts in the offer.
|
String |
getName()
The name of the offer.
|
String |
getProductId()
The product ID of the offer.
|
String |
getReleaseDate()
The release date of the offer.
|
String |
getState()
The status of the offer.
|
List<String> |
getTargeting()
The targeting in the offer.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityEndDate(String availabilityEndDate)
The availability end date of the offer.
|
void |
setBuyerAccounts(Collection<String> buyerAccounts)
The buyer accounts in the offer.
|
void |
setName(String name)
The name of the offer.
|
void |
setProductId(String productId)
The product ID of the offer.
|
void |
setReleaseDate(String releaseDate)
The release date of the offer.
|
void |
setState(String state)
The status of the offer.
|
void |
setTargeting(Collection<String> targeting)
The targeting in the offer.
|
String |
toString()
Returns a string representation of this object.
|
OfferSummary |
withAvailabilityEndDate(String availabilityEndDate)
The availability end date of the offer.
|
OfferSummary |
withBuyerAccounts(Collection<String> buyerAccounts)
The buyer accounts in the offer.
|
OfferSummary |
withBuyerAccounts(String... buyerAccounts)
The buyer accounts in the offer.
|
OfferSummary |
withName(String name)
The name of the offer.
|
OfferSummary |
withProductId(String productId)
The product ID of the offer.
|
OfferSummary |
withReleaseDate(String releaseDate)
The release date of the offer.
|
OfferSummary |
withState(OfferStateString state)
The status of the offer.
|
OfferSummary |
withState(String state)
The status of the offer.
|
OfferSummary |
withTargeting(Collection<String> targeting)
The targeting in the offer.
|
OfferSummary |
withTargeting(OfferTargetingString... targeting)
The targeting in the offer.
|
OfferSummary |
withTargeting(String... targeting)
The targeting in the offer.
|
public void setName(String name)
The name of the offer.
name
- The name of the offer.public String getName()
The name of the offer.
public OfferSummary withName(String name)
The name of the offer.
name
- The name of the offer.public void setProductId(String productId)
The product ID of the offer.
productId
- The product ID of the offer.public String getProductId()
The product ID of the offer.
public OfferSummary withProductId(String productId)
The product ID of the offer.
productId
- The product ID of the offer.public void setReleaseDate(String releaseDate)
The release date of the offer.
releaseDate
- The release date of the offer.public String getReleaseDate()
The release date of the offer.
public OfferSummary withReleaseDate(String releaseDate)
The release date of the offer.
releaseDate
- The release date of the offer.public void setAvailabilityEndDate(String availabilityEndDate)
The availability end date of the offer.
availabilityEndDate
- The availability end date of the offer.public String getAvailabilityEndDate()
The availability end date of the offer.
public OfferSummary withAvailabilityEndDate(String availabilityEndDate)
The availability end date of the offer.
availabilityEndDate
- The availability end date of the offer.public List<String> getBuyerAccounts()
The buyer accounts in the offer.
public void setBuyerAccounts(Collection<String> buyerAccounts)
The buyer accounts in the offer.
buyerAccounts
- The buyer accounts in the offer.public OfferSummary withBuyerAccounts(String... buyerAccounts)
The buyer accounts in the offer.
NOTE: This method appends the values to the existing list (if any). Use
setBuyerAccounts(java.util.Collection)
or withBuyerAccounts(java.util.Collection)
if you want
to override the existing values.
buyerAccounts
- The buyer accounts in the offer.public OfferSummary withBuyerAccounts(Collection<String> buyerAccounts)
The buyer accounts in the offer.
buyerAccounts
- The buyer accounts in the offer.public void setState(String state)
The status of the offer.
state
- The status of the offer.OfferStateString
public String getState()
The status of the offer.
OfferStateString
public OfferSummary withState(String state)
The status of the offer.
state
- The status of the offer.OfferStateString
public OfferSummary withState(OfferStateString state)
The status of the offer.
state
- The status of the offer.OfferStateString
public List<String> getTargeting()
The targeting in the offer.
OfferTargetingString
public void setTargeting(Collection<String> targeting)
The targeting in the offer.
targeting
- The targeting in the offer.OfferTargetingString
public OfferSummary withTargeting(String... targeting)
The targeting in the offer.
NOTE: This method appends the values to the existing list (if any). Use
setTargeting(java.util.Collection)
or withTargeting(java.util.Collection)
if you want to
override the existing values.
targeting
- The targeting in the offer.OfferTargetingString
public OfferSummary withTargeting(Collection<String> targeting)
The targeting in the offer.
targeting
- The targeting in the offer.OfferTargetingString
public OfferSummary withTargeting(OfferTargetingString... targeting)
The targeting in the offer.
targeting
- The targeting in the offer.OfferTargetingString
public String toString()
toString
in class Object
Object.toString()
public OfferSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.