Class CostCategoryInheritedValueDimension
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.CostCategoryInheritedValueDimension
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CostCategoryInheritedValueDimension.Builder,CostCategoryInheritedValueDimension>
@Generated("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
CostCategoryRulerule type asINHERITED_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 byCostCategoryInheritedValueDimension. 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCostCategoryInheritedValueDimension.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CostCategoryInheritedValueDimension.Builderbuilder()StringdimensionKey()The key to extract cost category values.CostCategoryInheritedValueDimensionNamedimensionName()The name of the dimension that's used to group costs.StringdimensionNameAsString()The name of the dimension that's used to group costs.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CostCategoryInheritedValueDimension.Builder>serializableBuilderClass()CostCategoryInheritedValueDimension.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dimensionName
public 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 specifyTAG, 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,
dimensionNamewill returnCostCategoryInheritedValueDimensionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdimensionNameAsString().- Returns:
- 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 specifyTAG, the cost category value is based on the value of the specified tag key. - See Also:
CostCategoryInheritedValueDimensionName
-
dimensionNameAsString
public 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 specifyTAG, 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,
dimensionNamewill returnCostCategoryInheritedValueDimensionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdimensionNameAsString().- Returns:
- 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 specifyTAG, the cost category value is based on the value of the specified tag key. - See Also:
CostCategoryInheritedValueDimensionName
-
dimensionKey
public final String dimensionKey()
The key to extract cost category values.
- Returns:
- The key to extract cost category values.
-
toBuilder
public CostCategoryInheritedValueDimension.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CostCategoryInheritedValueDimension.Builder,CostCategoryInheritedValueDimension>
-
builder
public static CostCategoryInheritedValueDimension.Builder builder()
-
serializableBuilderClass
public static Class<? extends CostCategoryInheritedValueDimension.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-