@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 |
getClientToken()
The token that is needed to support idempotency.
|
String |
getDescription()
The pricing rule description.
|
Double |
getModifierPercentage()
A percentage modifier applied on the public pricing rates.
|
String |
getName()
The pricing rule name.
|
String |
getScope()
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
|
String |
getService()
If the
Scope attribute is set to SERVICE , 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.
|
String |
getType()
The type of pricing rule.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
The token that is needed to support idempotency.
|
void |
setDescription(String description)
The pricing rule description.
|
void |
setModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
|
void |
setName(String name)
The pricing rule name.
|
void |
setScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
|
void |
setService(String service)
If the
Scope attribute is set to SERVICE , 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 |
setType(String type)
The type of pricing rule.
|
String |
toString()
Returns a string representation of this object.
|
CreatePricingRuleRequest |
withClientToken(String clientToken)
The token that is needed to support idempotency.
|
CreatePricingRuleRequest |
withDescription(String description)
The pricing rule description.
|
CreatePricingRuleRequest |
withModifierPercentage(Double modifierPercentage)
A percentage modifier applied on the public pricing rates.
|
CreatePricingRuleRequest |
withName(String name)
The pricing rule name.
|
CreatePricingRuleRequest |
withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
|
CreatePricingRuleRequest |
withScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
|
CreatePricingRuleRequest |
withService(String service)
If the
Scope attribute is set to SERVICE , 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 |
withType(PricingRuleType type)
The type of pricing rule.
|
CreatePricingRuleRequest |
withType(String type)
The type of pricing rule.
|
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 is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
clientToken
- The token that is needed to support idempotency. Idempotency isn't currently supported, but will be
implemented in a future update.public String getClientToken()
The token that is 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 is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
clientToken
- The token that is 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 is globally applicable, or is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or is service-specific.PricingRuleScope
public String getScope()
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
PricingRuleScope
public CreatePricingRuleRequest withScope(String scope)
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or is service-specific.PricingRuleScope
public CreatePricingRuleRequest withScope(PricingRuleScope scope)
The scope of pricing rule that indicates if it is globally applicable, or is service-specific.
scope
- The scope of pricing rule that indicates if it is globally applicable, or 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 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 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 CreatePricingRuleRequest 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 set to SERVICE
, the attribute indicates which service the
PricingRule
is applicable for.
service
- If the Scope
attribute is set to SERVICE
, the attribute indicates which service
the PricingRule
is applicable for.public String getService()
If the Scope
attribute is set to SERVICE
, the attribute indicates which service the
PricingRule
is applicable for.
Scope
attribute is set to SERVICE
, the attribute indicates which service
the PricingRule
is applicable for.public CreatePricingRuleRequest withService(String service)
If the Scope
attribute is set to SERVICE
, the attribute indicates which service the
PricingRule
is applicable for.
service
- If the Scope
attribute is set to SERVICE
, 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 String toString()
toString
in class Object
Object.toString()
public CreatePricingRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()