@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategory extends Object implements Serializable, Cloneable, StructuredPojo
Cost Category is in public beta for AWS Billing and Cost Management and is subject to change. Your use of Cost Categories is subject to the Beta Service Participation terms of the AWS Service Terms (Section 1.10).
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 |
getEffectiveEnd()
The Cost Category's effective end date.
|
String |
getEffectiveStart()
The Cost Category's effective start date.
|
String |
getName() |
List<CostCategoryRule> |
getRules()
Rules are processed in order.
|
String |
getRuleVersion() |
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 |
setEffectiveEnd(String effectiveEnd)
The Cost Category's effective end date.
|
void |
setEffectiveStart(String effectiveStart)
The Cost Category's effective start date.
|
void |
setName(String name) |
void |
setRules(Collection<CostCategoryRule> rules)
Rules are processed in order.
|
void |
setRuleVersion(String ruleVersion) |
String |
toString()
Returns a string representation of this object.
|
CostCategory |
withCostCategoryArn(String costCategoryArn)
The unique identifier for your Cost Category.
|
CostCategory |
withEffectiveEnd(String effectiveEnd)
The Cost Category's effective end date.
|
CostCategory |
withEffectiveStart(String effectiveStart)
The Cost Category's effective start date.
|
CostCategory |
withName(String name) |
CostCategory |
withRules(Collection<CostCategoryRule> rules)
Rules are processed in order.
|
CostCategory |
withRules(CostCategoryRule... rules)
Rules are processed in order.
|
CostCategory |
withRuleVersion(CostCategoryRuleVersion ruleVersion) |
CostCategory |
withRuleVersion(String ruleVersion) |
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 Cost Category's effective start date.
effectiveStart
- The Cost Category's effective start date.public String getEffectiveStart()
The Cost Category's effective start date.
public CostCategory withEffectiveStart(String effectiveStart)
The Cost Category's effective start date.
effectiveStart
- The Cost Category's effective start date.public void setEffectiveEnd(String effectiveEnd)
The Cost Category's effective end date.
effectiveEnd
- The Cost Category's effective end date.public String getEffectiveEnd()
The Cost Category's effective end date.
public CostCategory withEffectiveEnd(String effectiveEnd)
The Cost Category's effective end date.
effectiveEnd
- The Cost Category's effective end date.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()
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)
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
- 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)
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
- 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)
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
- 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.