@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PricingRuleListElement extends Object implements Serializable, Cloneable, StructuredPojo
A representation of a pricing rule.
Constructor and Description |
---|
PricingRuleListElement() |
Modifier and Type | Method and Description |
---|---|
PricingRuleListElement |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
|
Long |
getAssociatedPricingPlanCount()
The pricing plans count that this pricing rule is associated with.
|
String |
getBillingEntity()
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.
|
Long |
getCreationTime()
The time when the pricing rule was created.
|
String |
getDescription()
The pricing rule description.
|
Long |
getLastModifiedTime()
The most recent time when the pricing rule was modified.
|
Double |
getModifierPercentage()
A percentage modifier applied on the public pricing rates.
|
String |
getName()
The name of a pricing rule.
|
String |
getOperation()
Operation is the specific Amazon Web Services action covered by this line item.
|
String |
getScope()
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
String |
getService()
If the
Scope attribute is SERVICE , this attribute indicates which service the
PricingRule is applicable for. |
Tiering |
getTiering()
The set of tiering configurations for the pricing rule.
|
String |
getType()
The type of pricing rule.
|
String |
getUsageType()
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
|
void |
setAssociatedPricingPlanCount(Long associatedPricingPlanCount)
The pricing plans count that this pricing rule is associated with.
|
void |
setBillingEntity(String billingEntity)
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.
|
void |
setCreationTime(Long creationTime)
The time when the pricing rule was created.
|
void |
setDescription(String description)
The pricing rule description.
|
void |
setLastModifiedTime(Long lastModifiedTime)
The most recent time when the pricing rule was modified.
|
void |
setModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
|
void |
setName(String name)
The name of a pricing rule.
|
void |
setOperation(String operation)
Operation is the specific Amazon Web Services action covered by this line item.
|
void |
setScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
void |
setService(String service)
If the
Scope attribute is SERVICE , this attribute indicates which service the
PricingRule is applicable for. |
void |
setTiering(Tiering tiering)
The set of tiering configurations for the pricing rule.
|
void |
setType(String type)
The type of pricing rule.
|
void |
setUsageType(String usageType)
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
|
String |
toString()
Returns a string representation of this object.
|
PricingRuleListElement |
withArn(String arn)
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
|
PricingRuleListElement |
withAssociatedPricingPlanCount(Long associatedPricingPlanCount)
The pricing plans count that this pricing rule is associated with.
|
PricingRuleListElement |
withBillingEntity(String billingEntity)
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.
|
PricingRuleListElement |
withCreationTime(Long creationTime)
The time when the pricing rule was created.
|
PricingRuleListElement |
withDescription(String description)
The pricing rule description.
|
PricingRuleListElement |
withLastModifiedTime(Long lastModifiedTime)
The most recent time when the pricing rule was modified.
|
PricingRuleListElement |
withModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
|
PricingRuleListElement |
withName(String name)
The name of a pricing rule.
|
PricingRuleListElement |
withOperation(String operation)
Operation is the specific Amazon Web Services action covered by this line item.
|
PricingRuleListElement |
withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
PricingRuleListElement |
withScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
|
PricingRuleListElement |
withService(String service)
If the
Scope attribute is SERVICE , this attribute indicates which service the
PricingRule is applicable for. |
PricingRuleListElement |
withTiering(Tiering tiering)
The set of tiering configurations for the pricing rule.
|
PricingRuleListElement |
withType(PricingRuleType type)
The type of pricing rule.
|
PricingRuleListElement |
withType(String type)
The type of pricing rule.
|
PricingRuleListElement |
withUsageType(String usageType)
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
|
public void setName(String name)
The name of a pricing rule.
name
- The name of a pricing rule.public String getName()
The name of a pricing rule.
public PricingRuleListElement withName(String name)
The name of a pricing rule.
name
- The name of a pricing rule.public void setArn(String arn)
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
arn
- The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.public String getArn()
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
public PricingRuleListElement withArn(String arn)
The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
arn
- The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.public void setDescription(String description)
The pricing rule description.
description
- The pricing rule description.public String getDescription()
The pricing rule description.
public PricingRuleListElement withDescription(String description)
The pricing rule description.
description
- The pricing rule description.public void setScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.PricingRuleScope
public String getScope()
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
PricingRuleScope
public PricingRuleListElement withScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.PricingRuleScope
public PricingRuleListElement withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or if it is service-specific.PricingRuleScope
public void setType(String type)
The type of pricing rule.
type
- The type of pricing rule.PricingRuleType
public String getType()
The type of pricing rule.
PricingRuleType
public PricingRuleListElement withType(String type)
The type of pricing rule.
type
- The type of pricing rule.PricingRuleType
public PricingRuleListElement withType(PricingRuleType type)
The type of pricing rule.
type
- The type of pricing rule.PricingRuleType
public void setModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
modifierPercentage
- A percentage modifier applied on the public pricing rates.public Double getModifierPercentage()
A percentage modifier applied on the public pricing rates.
public PricingRuleListElement withModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
modifierPercentage
- A percentage modifier applied on the public pricing rates.public void setService(String service)
If the Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.
service
- If the Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.public String getService()
If the Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.
Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.public PricingRuleListElement withService(String service)
If the Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.
service
- If the Scope
attribute is SERVICE
, this attribute indicates which service the
PricingRule
is applicable for.public void setAssociatedPricingPlanCount(Long associatedPricingPlanCount)
The pricing plans count that this pricing rule is associated with.
associatedPricingPlanCount
- The pricing plans count that this pricing rule is associated with.public Long getAssociatedPricingPlanCount()
The pricing plans count that this pricing rule is associated with.
public PricingRuleListElement withAssociatedPricingPlanCount(Long associatedPricingPlanCount)
The pricing plans count that this pricing rule is associated with.
associatedPricingPlanCount
- The pricing plans count that this pricing rule is associated with.public void setCreationTime(Long creationTime)
The time when the pricing rule was created.
creationTime
- The time when the pricing rule was created.public Long getCreationTime()
The time when the pricing rule was created.
public PricingRuleListElement withCreationTime(Long creationTime)
The time when the pricing rule was created.
creationTime
- The time when the pricing rule was created.public void setLastModifiedTime(Long lastModifiedTime)
The most recent time when the pricing rule was modified.
lastModifiedTime
- The most recent time when the pricing rule was modified.public Long getLastModifiedTime()
The most recent time when the pricing rule was modified.
public PricingRuleListElement withLastModifiedTime(Long lastModifiedTime)
The most recent time when the pricing rule was modified.
lastModifiedTime
- The most recent time when the pricing rule was modified.public void setBillingEntity(String billingEntity)
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
billingEntity
- The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.public String getBillingEntity()
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
public PricingRuleListElement withBillingEntity(String billingEntity)
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
billingEntity
- The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.public void setTiering(Tiering tiering)
The set of tiering configurations for the pricing rule.
tiering
- The set of tiering configurations for the pricing rule.public Tiering getTiering()
The set of tiering configurations for the pricing rule.
public PricingRuleListElement withTiering(Tiering tiering)
The set of tiering configurations for the pricing rule.
tiering
- The set of tiering configurations for the pricing rule.public void setUsageType(String usageType)
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope
attribute is set to SKU
, this attribute indicates which usage type the
PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes an
M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
usageType
- Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope
attribute is set to SKU
, this attribute indicates which usage type
the PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes an
M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
public String getUsageType()
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope
attribute is set to SKU
, this attribute indicates which usage type the
PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes an
M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
If the Scope
attribute is set to SKU
, this attribute indicates which usage type
the PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes
an M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
public PricingRuleListElement withUsageType(String usageType)
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope
attribute is set to SKU
, this attribute indicates which usage type the
PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes an
M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
usageType
- Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope
attribute is set to SKU
, this attribute indicates which usage type
the PricingRule
is modifying. For example, USW2-BoxUsage:m2.2xlarge
describes an
M2 High Memory Double Extra Large
instance in the US West (Oregon) Region.
</p>
public void setOperation(String operation)
Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.
If the Scope
attribute is set to SKU
, this attribute indicates which operation the
PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the
operation of running an Amazon EC2 instance.
operation
- Operation is the specific Amazon Web Services action covered by this line item. This describes the
specific usage of the line item.
If the Scope
attribute is set to SKU
, this attribute indicates which operation
the PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the operation of running an Amazon EC2 instance.
public String getOperation()
Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.
If the Scope
attribute is set to SKU
, this attribute indicates which operation the
PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the
operation of running an Amazon EC2 instance.
If the Scope
attribute is set to SKU
, this attribute indicates which operation
the PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the operation of running an Amazon EC2 instance.
public PricingRuleListElement withOperation(String operation)
Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.
If the Scope
attribute is set to SKU
, this attribute indicates which operation the
PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the
operation of running an Amazon EC2 instance.
operation
- Operation is the specific Amazon Web Services action covered by this line item. This describes the
specific usage of the line item.
If the Scope
attribute is set to SKU
, this attribute indicates which operation
the PricingRule
is modifying. For example, a value of RunInstances:0202
indicates the operation of running an Amazon EC2 instance.
public String toString()
toString
in class Object
Object.toString()
public PricingRuleListElement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.