Class OfferingTransaction
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.OfferingTransaction
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class OfferingTransaction extends Object implements Serializable, Cloneable
Represents the metadata of an offering transaction.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OfferingTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OfferingTransaction
clone()
boolean
equals(Object obj)
MonetaryAmount
getCost()
The cost of an offering transaction.Date
getCreatedOn()
The date on which an offering transaction was created.OfferingStatus
getOfferingStatus()
The status of an offering transaction.String
getTransactionId()
The transaction ID of the offering transaction.int
hashCode()
void
setCost(MonetaryAmount cost)
The cost of an offering transaction.void
setCreatedOn(Date createdOn)
The date on which an offering transaction was created.void
setOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.void
setTransactionId(String transactionId)
The transaction ID of the offering transaction.String
toString()
Returns a string representation of this object; useful for testing and debugging.OfferingTransaction
withCost(MonetaryAmount cost)
The cost of an offering transaction.OfferingTransaction
withCreatedOn(Date createdOn)
The date on which an offering transaction was created.OfferingTransaction
withOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.OfferingTransaction
withTransactionId(String transactionId)
The transaction ID of the offering transaction.
-
-
-
Method Detail
-
setOfferingStatus
public void setOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
- Parameters:
offeringStatus
- The status of an offering transaction.
-
getOfferingStatus
public OfferingStatus getOfferingStatus()
The status of an offering transaction.
- Returns:
- The status of an offering transaction.
-
withOfferingStatus
public OfferingTransaction withOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
- Parameters:
offeringStatus
- The status of an offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTransactionId
public void setTransactionId(String transactionId)
The transaction ID of the offering transaction.
- Parameters:
transactionId
- The transaction ID of the offering transaction.
-
getTransactionId
public String getTransactionId()
The transaction ID of the offering transaction.
- Returns:
- The transaction ID of the offering transaction.
-
withTransactionId
public OfferingTransaction withTransactionId(String transactionId)
The transaction ID of the offering transaction.
- Parameters:
transactionId
- The transaction ID of the offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedOn
public void setCreatedOn(Date createdOn)
The date on which an offering transaction was created.
- Parameters:
createdOn
- The date on which an offering transaction was created.
-
getCreatedOn
public Date getCreatedOn()
The date on which an offering transaction was created.
- Returns:
- The date on which an offering transaction was created.
-
withCreatedOn
public OfferingTransaction withCreatedOn(Date createdOn)
The date on which an offering transaction was created.
- Parameters:
createdOn
- The date on which an offering transaction was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCost
public void setCost(MonetaryAmount cost)
The cost of an offering transaction.
- Parameters:
cost
- The cost of an offering transaction.
-
getCost
public MonetaryAmount getCost()
The cost of an offering transaction.
- Returns:
- The cost of an offering transaction.
-
withCost
public OfferingTransaction withCost(MonetaryAmount cost)
The cost of an offering transaction.
- Parameters:
cost
- The cost of an offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public OfferingTransaction clone()
-
-