@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCostCategoryDefinitionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCostCategoryDefinitionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCostCategoryDefinitionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDefaultValue() |
String |
getName() |
List<ResourceTag> |
getResourceTags()
An optional list of tags to associate with the specified
CostCategory . |
List<CostCategoryRule> |
getRules()
The Cost Category rules used to categorize costs.
|
String |
getRuleVersion() |
List<CostCategorySplitChargeRule> |
getSplitChargeRules()
The split charge rules used to allocate your charges between your Cost Category values.
|
int |
hashCode() |
void |
setDefaultValue(String defaultValue) |
void |
setName(String name) |
void |
setResourceTags(Collection<ResourceTag> resourceTags)
An optional list of tags to associate with the specified
CostCategory . |
void |
setRules(Collection<CostCategoryRule> rules)
The Cost Category rules used to categorize costs.
|
void |
setRuleVersion(String ruleVersion) |
void |
setSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
|
String |
toString()
Returns a string representation of this object.
|
CreateCostCategoryDefinitionRequest |
withDefaultValue(String defaultValue) |
CreateCostCategoryDefinitionRequest |
withName(String name) |
CreateCostCategoryDefinitionRequest |
withResourceTags(Collection<ResourceTag> resourceTags)
An optional list of tags to associate with the specified
CostCategory . |
CreateCostCategoryDefinitionRequest |
withResourceTags(ResourceTag... resourceTags)
An optional list of tags to associate with the specified
CostCategory . |
CreateCostCategoryDefinitionRequest |
withRules(Collection<CostCategoryRule> rules)
The Cost Category rules used to categorize costs.
|
CreateCostCategoryDefinitionRequest |
withRules(CostCategoryRule... rules)
The Cost Category rules used to categorize costs.
|
CreateCostCategoryDefinitionRequest |
withRuleVersion(CostCategoryRuleVersion ruleVersion) |
CreateCostCategoryDefinitionRequest |
withRuleVersion(String ruleVersion) |
CreateCostCategoryDefinitionRequest |
withSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
|
CreateCostCategoryDefinitionRequest |
withSplitChargeRules(CostCategorySplitChargeRule... splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
|
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 setName(String name)
name
- public String getName()
public CreateCostCategoryDefinitionRequest withName(String name)
name
- public void setRuleVersion(String ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public String getRuleVersion()
CostCategoryRuleVersion
public CreateCostCategoryDefinitionRequest withRuleVersion(String ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public CreateCostCategoryDefinitionRequest withRuleVersion(CostCategoryRuleVersion ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public List<CostCategoryRule> getRules()
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
public void setRules(Collection<CostCategoryRule> rules)
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
rules
- The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.public CreateCostCategoryDefinitionRequest withRules(CostCategoryRule... rules)
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.public CreateCostCategoryDefinitionRequest withRules(Collection<CostCategoryRule> rules)
The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.
rules
- The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.public void setDefaultValue(String defaultValue)
defaultValue
- public String getDefaultValue()
public CreateCostCategoryDefinitionRequest withDefaultValue(String defaultValue)
defaultValue
- public List<CostCategorySplitChargeRule> getSplitChargeRules()
The split charge rules used to allocate your charges between your Cost Category values.
public void setSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
splitChargeRules
- The split charge rules used to allocate your charges between your Cost Category values.public CreateCostCategoryDefinitionRequest withSplitChargeRules(CostCategorySplitChargeRule... splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
NOTE: This method appends the values to the existing list (if any). Use
setSplitChargeRules(java.util.Collection)
or withSplitChargeRules(java.util.Collection)
if you
want to override the existing values.
splitChargeRules
- The split charge rules used to allocate your charges between your Cost Category values.public CreateCostCategoryDefinitionRequest withSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules used to allocate your charges between your Cost Category values.
splitChargeRules
- The split charge rules used to allocate your charges between your Cost Category values.public List<ResourceTag> getResourceTags()
An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
CostCategory
. You can use resource tags to control access to your
cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces,
_.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services
use
public void setResourceTags(Collection<ResourceTag> resourceTags)
An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
resourceTags
- An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your
cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
public CreateCostCategoryDefinitionRequest withResourceTags(ResourceTag... resourceTags)
An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
NOTE: This method appends the values to the existing list (if any). Use
setResourceTags(java.util.Collection)
or withResourceTags(java.util.Collection)
if you want to
override the existing values.
resourceTags
- An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your
cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
public CreateCostCategoryDefinitionRequest withResourceTags(Collection<ResourceTag> resourceTags)
An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
resourceTags
- An optional list of tags to associate with the specified
CostCategory
. You can use resource tags to control access to your
cost category
using IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
The maximum length of a key is 128 characters
The maximum length of a value is 256 characters
Valid characters for keys and values are: A-Z
, a-z
, spaces, _.:/=+-
Keys and values are case sensitive
Keys and values are trimmed for any leading or trailing whitespaces
Don’t use aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
public String toString()
toString
in class Object
Object.toString()
public CreateCostCategoryDefinitionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()