@Generated(value="software.amazon.awssdk:codegen") public final class CostCategoryInheritedValueDimension extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CostCategoryInheritedValueDimension.Builder,CostCategoryInheritedValueDimension>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CostCategoryInheritedValueDimension.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CostCategoryInheritedValueDimension.Builder |
builder() |
String |
dimensionKey()
The key to extract cost category values.
|
CostCategoryInheritedValueDimensionName |
dimensionName()
The name of dimension for which to group costs.
|
String |
dimensionNameAsString()
The name of dimension for which to group costs.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CostCategoryInheritedValueDimension.Builder> |
serializableBuilderClass() |
CostCategoryInheritedValueDimension.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version, dimensionName
will return CostCategoryInheritedValueDimensionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from dimensionNameAsString().
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.
CostCategoryInheritedValueDimensionNamepublic final String dimensionNameAsString()
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 the service returns an enum value that is not available in the current SDK version, dimensionName
will return CostCategoryInheritedValueDimensionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from dimensionNameAsString().
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.
CostCategoryInheritedValueDimensionNamepublic final String dimensionKey()
The key to extract cost category values.
public CostCategoryInheritedValueDimension.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CostCategoryInheritedValueDimension.Builder,CostCategoryInheritedValueDimension>public static CostCategoryInheritedValueDimension.Builder builder()
public static Class<? extends CostCategoryInheritedValueDimension.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.