Class CostCategoryRule
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CostCategoryRule.Builder,CostCategoryRule>
Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CostCategoryRule.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()The value the line item is categorized as if the line item contains the matched dimension.final Expressionrule()An Expression object used to categorize costs.static Class<? extends CostCategoryRule.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final CostCategoryRuleTypetype()You can define theCostCategoryRulerule type as eitherREGULARorINHERITED_VALUE.final StringYou can define theCostCategoryRulerule type as eitherREGULARorINHERITED_VALUE.final Stringvalue()Returns the value of the Value property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
value
Returns the value of the Value property for this object.- Returns:
- The value of the Value property for this object.
-
rule
An Expression object used to categorize costs. This supports dimensions, tags, and nested expressions. Currently the only dimensions supported are
LINKED_ACCOUNT,SERVICE_CODE,RECORD_TYPE,LINKED_ACCOUNT_NAME,REGION, andUSAGE_TYPE.RECORD_TYPEis a dimension used for Cost Explorer APIs, and is also supported for Cost Category expressions. This dimension uses different terms, depending on whether you're using the console or API/JSON editor. For a detailed comparison, see Term Comparisons in the Billing and Cost Management User Guide.- Returns:
- An Expression
object used to categorize costs. This supports dimensions, tags, and nested expressions. Currently
the only dimensions supported are
LINKED_ACCOUNT,SERVICE_CODE,RECORD_TYPE,LINKED_ACCOUNT_NAME,REGION, andUSAGE_TYPE.RECORD_TYPEis a dimension used for Cost Explorer APIs, and is also supported for Cost Category expressions. This dimension uses different terms, depending on whether you're using the console or API/JSON editor. For a detailed comparison, see Term Comparisons in the Billing and Cost Management User Guide.
-
inheritedValue
The value the line item is categorized as if the line item contains the matched dimension.
- Returns:
- The value the line item is categorized as if the line item contains the matched dimension.
-
type
You can define the
CostCategoryRulerule type as eitherREGULARorINHERITED_VALUE. TheINHERITED_VALUErule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined byCostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped 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.If the service returns an enum value that is not available in the current SDK version,
typewill returnCostCategoryRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- You can define the
CostCategoryRulerule type as eitherREGULARorINHERITED_VALUE. TheINHERITED_VALUErule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined byCostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped 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:
-
typeAsString
You can define the
CostCategoryRulerule type as eitherREGULARorINHERITED_VALUE. TheINHERITED_VALUErule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined byCostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped 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.If the service returns an enum value that is not available in the current SDK version,
typewill returnCostCategoryRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- You can define the
CostCategoryRulerule type as eitherREGULARorINHERITED_VALUE. TheINHERITED_VALUErule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined byCostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped 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:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CostCategoryRule.Builder,CostCategoryRule> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-