@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategoryInheritedValueDimension extends Object implements Serializable, Cloneable, StructuredPojo
When creating or updating a cost category, you can define the CostCategoryRule
rule type as
INHERITED_VALUE
. This rule type adds the flexibility of defining a rule that dynamically inherits the
cost category value from the dimension value defined by CostCategoryInheritedValueDimension
. For
example, if you wanted to dynamically group costs based on the value of a specific tag key, you would first choose an
inherited value rule type, 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 dimension for which 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 dimension for which 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 dimension for which to group costs.
|
CostCategoryInheritedValueDimension |
withDimensionName(String dimensionName)
The name of dimension for which to group costs.
|
public void setDimensionName(String dimensionName)
The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If you
specify TAG
, the cost category value will be based on the value of the specified tag key.
dimensionName
- The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If
you specify TAG
, the cost category value will be based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public String getDimensionName()
The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If you
specify TAG
, the cost category value will be based on the value of the specified tag key.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name.
If you specify TAG
, the cost category value will be based on the value of the specified tag
key.
CostCategoryInheritedValueDimensionName
public CostCategoryInheritedValueDimension withDimensionName(String dimensionName)
The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If you
specify TAG
, the cost category value will be based on the value of the specified tag key.
dimensionName
- The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If
you specify TAG
, the cost category value will be based on the value of the specified tag key.
CostCategoryInheritedValueDimensionName
public CostCategoryInheritedValueDimension withDimensionName(CostCategoryInheritedValueDimensionName dimensionName)
The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If you
specify TAG
, the cost category value will be based on the value of the specified tag key.
dimensionName
- The name of dimension for which to group costs.
If you specify LINKED_ACCOUNT_NAME
, the cost category value will be based on account name. If
you specify TAG
, the cost category value will be 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.