@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategory extends Object implements Serializable, Cloneable, StructuredPojo
The structure of Cost Categories. This includes detailed metadata and the set of rules for the
CostCategory
object.
Constructor and Description |
---|
CostCategory() |
Modifier and Type | Method and Description |
---|---|
CostCategory |
clone() |
boolean |
equals(Object obj) |
String |
getCostCategoryArn()
The unique identifier for your Cost Category.
|
String |
getDefaultValue() |
String |
getEffectiveEnd()
The effective end data of your Cost Category.
|
String |
getEffectiveStart()
The effective state data of your Cost Category.
|
String |
getName() |
List<CostCategoryProcessingStatus> |
getProcessingStatus()
The list of processing statuses for Cost Management products for a specific cost category.
|
List<CostCategoryRule> |
getRules()
The rules are processed in order.
|
String |
getRuleVersion() |
List<CostCategorySplitChargeRule> |
getSplitChargeRules()
The split charge rules that are used to allocate your charges between your Cost Category values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCostCategoryArn(String costCategoryArn)
The unique identifier for your Cost Category.
|
void |
setDefaultValue(String defaultValue) |
void |
setEffectiveEnd(String effectiveEnd)
The effective end data of your Cost Category.
|
void |
setEffectiveStart(String effectiveStart)
The effective state data of your Cost Category.
|
void |
setName(String name) |
void |
setProcessingStatus(Collection<CostCategoryProcessingStatus> processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
|
void |
setRules(Collection<CostCategoryRule> rules)
The rules are processed in order.
|
void |
setRuleVersion(String ruleVersion) |
void |
setSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules that are used to allocate your charges between your Cost Category values.
|
String |
toString()
Returns a string representation of this object.
|
CostCategory |
withCostCategoryArn(String costCategoryArn)
The unique identifier for your Cost Category.
|
CostCategory |
withDefaultValue(String defaultValue) |
CostCategory |
withEffectiveEnd(String effectiveEnd)
The effective end data of your Cost Category.
|
CostCategory |
withEffectiveStart(String effectiveStart)
The effective state data of your Cost Category.
|
CostCategory |
withName(String name) |
CostCategory |
withProcessingStatus(Collection<CostCategoryProcessingStatus> processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
|
CostCategory |
withProcessingStatus(CostCategoryProcessingStatus... processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
|
CostCategory |
withRules(Collection<CostCategoryRule> rules)
The rules are processed in order.
|
CostCategory |
withRules(CostCategoryRule... rules)
The rules are processed in order.
|
CostCategory |
withRuleVersion(CostCategoryRuleVersion ruleVersion) |
CostCategory |
withRuleVersion(String ruleVersion) |
CostCategory |
withSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules that are used to allocate your charges between your Cost Category values.
|
CostCategory |
withSplitChargeRules(CostCategorySplitChargeRule... splitChargeRules)
The split charge rules that are used to allocate your charges between your Cost Category values.
|
public void setCostCategoryArn(String costCategoryArn)
The unique identifier for your Cost Category.
costCategoryArn
- The unique identifier for your Cost Category.public String getCostCategoryArn()
The unique identifier for your Cost Category.
public CostCategory withCostCategoryArn(String costCategoryArn)
The unique identifier for your Cost Category.
costCategoryArn
- The unique identifier for your Cost Category.public void setEffectiveStart(String effectiveStart)
The effective state data of your Cost Category.
effectiveStart
- The effective state data of your Cost Category.public String getEffectiveStart()
The effective state data of your Cost Category.
public CostCategory withEffectiveStart(String effectiveStart)
The effective state data of your Cost Category.
effectiveStart
- The effective state data of your Cost Category.public void setEffectiveEnd(String effectiveEnd)
The effective end data of your Cost Category.
effectiveEnd
- The effective end data of your Cost Category.public String getEffectiveEnd()
The effective end data of your Cost Category.
public CostCategory withEffectiveEnd(String effectiveEnd)
The effective end data of your Cost Category.
effectiveEnd
- The effective end data of your Cost Category.public void setName(String name)
name
- public String getName()
public CostCategory withName(String name)
name
- public void setRuleVersion(String ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public String getRuleVersion()
CostCategoryRuleVersion
public CostCategory withRuleVersion(String ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public CostCategory withRuleVersion(CostCategoryRuleVersion ruleVersion)
ruleVersion
- CostCategoryRuleVersion
public List<CostCategoryRule> getRules()
The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
public void setRules(Collection<CostCategoryRule> rules)
The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
rules
- The rules are processed in order. If there are multiple rules that match the line item, then the first
rule to match is used to determine that Cost Category value.public CostCategory withRules(CostCategoryRule... rules)
The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
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 rules are processed in order. If there are multiple rules that match the line item, then the first
rule to match is used to determine that Cost Category value.public CostCategory withRules(Collection<CostCategoryRule> rules)
The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
rules
- The rules are processed in order. If there are multiple rules that match the line item, then the first
rule to match is used to determine that Cost Category value.public List<CostCategorySplitChargeRule> getSplitChargeRules()
The split charge rules that are used to allocate your charges between your Cost Category values.
public void setSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules that are used to allocate your charges between your Cost Category values.
splitChargeRules
- The split charge rules that are used to allocate your charges between your Cost Category values.public CostCategory withSplitChargeRules(CostCategorySplitChargeRule... splitChargeRules)
The split charge rules that are 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 that are used to allocate your charges between your Cost Category values.public CostCategory withSplitChargeRules(Collection<CostCategorySplitChargeRule> splitChargeRules)
The split charge rules that are used to allocate your charges between your Cost Category values.
splitChargeRules
- The split charge rules that are used to allocate your charges between your Cost Category values.public List<CostCategoryProcessingStatus> getProcessingStatus()
The list of processing statuses for Cost Management products for a specific cost category.
public void setProcessingStatus(Collection<CostCategoryProcessingStatus> processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
processingStatus
- The list of processing statuses for Cost Management products for a specific cost category.public CostCategory withProcessingStatus(CostCategoryProcessingStatus... processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
NOTE: This method appends the values to the existing list (if any). Use
setProcessingStatus(java.util.Collection)
or withProcessingStatus(java.util.Collection)
if you
want to override the existing values.
processingStatus
- The list of processing statuses for Cost Management products for a specific cost category.public CostCategory withProcessingStatus(Collection<CostCategoryProcessingStatus> processingStatus)
The list of processing statuses for Cost Management products for a specific cost category.
processingStatus
- The list of processing statuses for Cost Management products for a specific cost category.public void setDefaultValue(String defaultValue)
defaultValue
- public String getDefaultValue()
public CostCategory withDefaultValue(String defaultValue)
defaultValue
- public String toString()
toString
in class Object
Object.toString()
public CostCategory clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.