@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePricingRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePricingRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePricingRuleRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreatePricingRuleRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreatePricingRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBillingEntity()
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.
|
String |
getClientToken()
The token that's needed to support idempotency.
|
String |
getDescription()
The pricing rule description.
|
Double |
getModifierPercentage()
A percentage modifier that's applied on the public pricing rates.
|
String |
getName()
The pricing rule name.
|
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's globally applicable, or it's service-specific.
|
String |
getService()
If the
Scope attribute is set to SERVICE or SKU , the attribute indicates
which service the PricingRule is applicable for. |
Map<String,String> |
getTags()
A map that contains tag keys and tag values that are attached to a pricing rule.
|
CreateTieringInput |
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 |
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 |
setClientToken(String clientToken)
The token that's needed to support idempotency.
|
void |
setDescription(String description)
The pricing rule description.
|
void |
setModifierPercentage(Double modifierPercentage)
A percentage modifier that's applied on the public pricing rates.
|
void |
setName(String name)
The pricing rule name.
|
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's globally applicable, or it's service-specific.
|
void |
setService(String service)
If the
Scope attribute is set to SERVICE or SKU , the attribute indicates
which service the PricingRule is applicable for. |
void |
setTags(Map<String,String> tags)
A map that contains tag keys and tag values that are attached to a pricing rule.
|
void |
setTiering(CreateTieringInput 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.
|
CreatePricingRuleRequest |
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.
|
CreatePricingRuleRequest |
withClientToken(String clientToken)
The token that's needed to support idempotency.
|
CreatePricingRuleRequest |
withDescription(String description)
The pricing rule description.
|
CreatePricingRuleRequest |
withModifierPercentage(Double modifierPercentage)
A percentage modifier that's applied on the public pricing rates.
|
CreatePricingRuleRequest |
withName(String name)
The pricing rule name.
|
CreatePricingRuleRequest |
withOperation(String operation)
Operation is the specific Amazon Web Services action covered by this line item.
|
CreatePricingRuleRequest |
withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
|
CreatePricingRuleRequest |
withScope(String scope)
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
|
CreatePricingRuleRequest |
withService(String service)
If the
Scope attribute is set to SERVICE or SKU , the attribute indicates
which service the PricingRule is applicable for. |
CreatePricingRuleRequest |
withTags(Map<String,String> tags)
A map that contains tag keys and tag values that are attached to a pricing rule.
|
CreatePricingRuleRequest |
withTiering(CreateTieringInput tiering)
The set of tiering configurations for the pricing rule.
|
CreatePricingRuleRequest |
withType(PricingRuleType type)
The type of pricing rule.
|
CreatePricingRuleRequest |
withType(String type)
The type of pricing rule.
|
CreatePricingRuleRequest |
withUsageType(String usageType)
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
clientToken
- The token that's needed to support idempotency. Idempotency isn't currently supported, but will be
implemented in a future update.public String getClientToken()
The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
public CreatePricingRuleRequest withClientToken(String clientToken)
The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
clientToken
- The token that's needed to support idempotency. Idempotency isn't currently supported, but will be
implemented in a future update.public void setName(String name)
The pricing rule name. The names must be unique to each pricing rule.
name
- The pricing rule name. The names must be unique to each pricing rule.public String getName()
The pricing rule name. The names must be unique to each pricing rule.
public CreatePricingRuleRequest withName(String name)
The pricing rule name. The names must be unique to each pricing rule.
name
- The pricing rule name. The names must be unique to each pricing rule.public void setDescription(String description)
The pricing rule description.
description
- The pricing rule description.public String getDescription()
The pricing rule description.
public CreatePricingRuleRequest 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's globally applicable, or it's service-specific.
scope
- The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.PricingRuleScope
public String getScope()
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
PricingRuleScope
public CreatePricingRuleRequest withScope(String scope)
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
scope
- The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.PricingRuleScope
public CreatePricingRuleRequest withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
scope
- The scope of pricing rule that indicates if it's globally applicable, or it's 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 CreatePricingRuleRequest withType(String type)
The type of pricing rule.
type
- The type of pricing rule.PricingRuleType
public CreatePricingRuleRequest withType(PricingRuleType type)
The type of pricing rule.
type
- The type of pricing rule.PricingRuleType
public void setModifierPercentage(Double modifierPercentage)
A percentage modifier that's applied on the public pricing rates.
modifierPercentage
- A percentage modifier that's applied on the public pricing rates.public Double getModifierPercentage()
A percentage modifier that's applied on the public pricing rates.
public CreatePricingRuleRequest withModifierPercentage(Double modifierPercentage)
A percentage modifier that's applied on the public pricing rates.
modifierPercentage
- A percentage modifier that's applied on the public pricing rates.public void setService(String service)
If the Scope
attribute is set to SERVICE
or SKU
, the attribute indicates
which service the PricingRule
is applicable for.
service
- If the Scope
attribute is set to SERVICE
or SKU
, the attribute
indicates which service the PricingRule
is applicable for.public String getService()
If the Scope
attribute is set to SERVICE
or SKU
, the attribute indicates
which service the PricingRule
is applicable for.
Scope
attribute is set to SERVICE
or SKU
, the attribute
indicates which service the PricingRule
is applicable for.public CreatePricingRuleRequest withService(String service)
If the Scope
attribute is set to SERVICE
or SKU
, the attribute indicates
which service the PricingRule
is applicable for.
service
- If the Scope
attribute is set to SERVICE
or SKU
, the attribute
indicates which service the PricingRule
is applicable for.public Map<String,String> getTags()
A map that contains tag keys and tag values that are attached to a pricing rule.
public void setTags(Map<String,String> tags)
A map that contains tag keys and tag values that are attached to a pricing rule.
tags
- A map that contains tag keys and tag values that are attached to a pricing rule.public CreatePricingRuleRequest withTags(Map<String,String> tags)
A map that contains tag keys and tag values that are attached to a pricing rule.
tags
- A map that contains tag keys and tag values that are attached to a pricing rule.public CreatePricingRuleRequest addTagsEntry(String key, String value)
public CreatePricingRuleRequest clearTagsEntries()
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 CreatePricingRuleRequest 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(CreateTieringInput tiering)
The set of tiering configurations for the pricing rule.
tiering
- The set of tiering configurations for the pricing rule.public CreateTieringInput getTiering()
The set of tiering configurations for the pricing rule.
public CreatePricingRuleRequest withTiering(CreateTieringInput 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 CreatePricingRuleRequest 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 CreatePricingRuleRequest 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 CreatePricingRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()