@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FixedUpfrontPricingTerm extends Object implements Serializable, Cloneable, StructuredPojo
Defines a prepaid pricing model where the customers are charged a fixed upfront amount.
Constructor and Description |
---|
FixedUpfrontPricingTerm() |
Modifier and Type | Method and Description |
---|---|
FixedUpfrontPricingTerm |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
Defines the currency for the prices mentioned in this term.
|
String |
getDuration()
Contract duration for the terms.
|
List<GrantItem> |
getGrants()
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
|
String |
getPrice()
Fixed amount to be charged to the customer when this term is accepted.
|
String |
getType()
Category of the term being updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in this term.
|
void |
setDuration(String duration)
Contract duration for the terms.
|
void |
setGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
|
void |
setPrice(String price)
Fixed amount to be charged to the customer when this term is accepted.
|
void |
setType(String type)
Category of the term being updated.
|
String |
toString()
Returns a string representation of this object.
|
FixedUpfrontPricingTerm |
withCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in this term.
|
FixedUpfrontPricingTerm |
withDuration(String duration)
Contract duration for the terms.
|
FixedUpfrontPricingTerm |
withGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
|
FixedUpfrontPricingTerm |
withGrants(GrantItem... grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
|
FixedUpfrontPricingTerm |
withPrice(String price)
Fixed amount to be charged to the customer when this term is accepted.
|
FixedUpfrontPricingTerm |
withType(String type)
Category of the term being updated.
|
public void setCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in this term.
currencyCode
- Defines the currency for the prices mentioned in this term.public String getCurrencyCode()
Defines the currency for the prices mentioned in this term.
public FixedUpfrontPricingTerm withCurrencyCode(String currencyCode)
Defines the currency for the prices mentioned in this term.
currencyCode
- Defines the currency for the prices mentioned in this term.public void setDuration(String duration)
Contract duration for the terms.
duration
- Contract duration for the terms.public String getDuration()
Contract duration for the terms.
public FixedUpfrontPricingTerm withDuration(String duration)
Contract duration for the terms.
duration
- Contract duration for the terms.public List<GrantItem> getGrants()
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
public void setGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
grants
- Entitlements granted to the acceptor of fixed upfront as part of agreement execution.public FixedUpfrontPricingTerm withGrants(GrantItem... grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
NOTE: This method appends the values to the existing list (if any). Use
setGrants(java.util.Collection)
or withGrants(java.util.Collection)
if you want to override the
existing values.
grants
- Entitlements granted to the acceptor of fixed upfront as part of agreement execution.public FixedUpfrontPricingTerm withGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
grants
- Entitlements granted to the acceptor of fixed upfront as part of agreement execution.public void setPrice(String price)
Fixed amount to be charged to the customer when this term is accepted.
price
- Fixed amount to be charged to the customer when this term is accepted.public String getPrice()
Fixed amount to be charged to the customer when this term is accepted.
public FixedUpfrontPricingTerm withPrice(String price)
Fixed amount to be charged to the customer when this term is accepted.
price
- Fixed amount to be charged to the customer when this term is accepted.public void setType(String type)
Category of the term being updated.
type
- Category of the term being updated.public String getType()
Category of the term being updated.
public FixedUpfrontPricingTerm withType(String type)
Category of the term being updated.
type
- Category of the term being updated.public String toString()
toString
in class Object
Object.toString()
public FixedUpfrontPricingTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.