@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategoryInheritedValueDimension extends Object implements Serializable, Cloneable, StructuredPojo
When you create or update a cost category, you can define the CostCategoryRule
rule type as
INHERITED_VALUE
. This rule type adds the flexibility to define a rule that dynamically inherits the cost
category value from the dimension value that's defined by CostCategoryInheritedValueDimension
. For
example, suppose that you want to dynamically group costs that are based on the value of a specific tag key. First,
choose an inherited value rule type, and then choose the tag dimension and specify the tag key to use.
Constructor and Description |
---|
CostCategoryInheritedValueDimension() |
Modifier and Type | Method and Description |
---|---|
CostCategoryInheritedValueDimension |
clone() |
boolean |
equals(Object obj) |
String |
getDimensionKey()
The key to extract cost category values.
|
String |
getDimensionName()
The name of the dimension that's used to group costs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensionKey(String dimensionKey)
The key to extract cost category values.
|
void |
setDimensionName(String dimensionName)
The name of the dimension that's used to group costs.
|
String |
toString()
Returns a string representation of this object.
|
CostCategoryInheritedValueDimension |
withDimensionKey(String dimensionKey)
The key to extract cost category values.
|
CostCategoryInheritedValueDimension |
withDimensionName(CostCategoryInheritedValueDimensionName dimensionName)
The name of the dimension that's used to group costs.
|
CostCategoryInheritedValueDimension |
withDimensionName(String dimensionName)
The name of the dimension that's used to group costs.
|
public void setDimensionName(String dimensionName)
The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you specify
TAG
, the cost category value is based on the value of the specified tag key.
dimensionName
- The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you
specify TAG
, the cost category value is based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public String getDimensionName()
The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you specify
TAG
, the cost category value is based on the value of the specified tag key.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you
specify TAG
, the cost category value is based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public CostCategoryInheritedValueDimension withDimensionName(String dimensionName)
The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you specify
TAG
, the cost category value is based on the value of the specified tag key.
dimensionName
- The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you
specify TAG
, the cost category value is based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public CostCategoryInheritedValueDimension withDimensionName(CostCategoryInheritedValueDimensionName dimensionName)
The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you specify
TAG
, the cost category value is based on the value of the specified tag key.
dimensionName
- The name of the dimension that's used to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value is based on account name. If you
specify TAG
, the cost category value is based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public void setDimensionKey(String dimensionKey)
The key to extract cost category values.
dimensionKey
- The key to extract cost category values.public String getDimensionKey()
The key to extract cost category values.
public CostCategoryInheritedValueDimension withDimensionKey(String dimensionKey)
The key to extract cost category values.
dimensionKey
- The key to extract cost category values.public String toString()
toString
in class Object
Object.toString()
public CostCategoryInheritedValueDimension clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.