@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FreeTrialPricingTerm extends Object implements Serializable, Cloneable, StructuredPojo
Defines a short-term free pricing model where the buyers aren’t charged anything within a specified limit.
Constructor and Description |
---|
FreeTrialPricingTerm() |
Modifier and Type | Method and Description |
---|---|
FreeTrialPricingTerm |
clone() |
boolean |
equals(Object obj) |
String |
getDuration()
Duration of the free trial period (5–31 days).
|
List<GrantItem> |
getGrants()
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
|
String |
getType()
Category of the term.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(String duration)
Duration of the free trial period (5–31 days).
|
void |
setGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
|
void |
setType(String type)
Category of the term.
|
String |
toString()
Returns a string representation of this object.
|
FreeTrialPricingTerm |
withDuration(String duration)
Duration of the free trial period (5–31 days).
|
FreeTrialPricingTerm |
withGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
|
FreeTrialPricingTerm |
withGrants(GrantItem... grants)
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
|
FreeTrialPricingTerm |
withType(String type)
Category of the term.
|
public void setDuration(String duration)
Duration of the free trial period (5–31 days).
duration
- Duration of the free trial period (5–31 days).public String getDuration()
Duration of the free trial period (5–31 days).
public FreeTrialPricingTerm withDuration(String duration)
Duration of the free trial period (5–31 days).
duration
- Duration of the free trial period (5–31 days).public List<GrantItem> getGrants()
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
public void setGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
grants
- Entitlements granted to the acceptor of a free trial as part of an agreement execution.public FreeTrialPricingTerm withGrants(GrantItem... grants)
Entitlements granted to the acceptor of a free trial as part of an 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 a free trial as part of an agreement execution.public FreeTrialPricingTerm withGrants(Collection<GrantItem> grants)
Entitlements granted to the acceptor of a free trial as part of an agreement execution.
grants
- Entitlements granted to the acceptor of a free trial as part of an agreement execution.public void setType(String type)
Category of the term.
type
- Category of the term.public String getType()
Category of the term.
public FreeTrialPricingTerm withType(String type)
Category of the term.
type
- Category of the term.public String toString()
toString
in class Object
Object.toString()
public FreeTrialPricingTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.