@Generated(value="software.amazon.awssdk:codegen") public final class CostCategoryInheritedValueDimension extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CostCategoryInheritedValueDimension.Builder,CostCategoryInheritedValueDimension>
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.
| 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 the dimension that's used to group costs.
|
String |
dimensionNameAsString()
The name of the dimension that's used 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 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 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 is based on account name. If you
specify TAG, the cost category value is based on the value of the specified tag key.
CostCategoryInheritedValueDimensionNamepublic final String dimensionNameAsString()
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 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 is based on account name. If you
specify TAG, the cost category value is 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 © 2023. All rights reserved.