@Generated(value="software.amazon.awssdk:codegen") public final class CostCategoryRule extends Object implements SdkPojo, Serializable, 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CostCategoryRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CostCategoryRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
CostCategoryInheritedValueDimension |
inheritedValue()
The value the line item will be categorized as, if the line item contains the matched dimension.
|
Expression |
rule()
An Expression
object used to categorize costs.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CostCategoryRule.Builder> |
serializableBuilderClass() |
CostCategoryRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
CostCategoryRuleType |
type()
You can define the
CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. |
String |
typeAsString()
You can define the
CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. |
String |
value()
Returns the value of the Value property for this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String value()
public final Expression 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, and
LINKED_ACCOUNT_NAME.
Root level OR is not supported. We recommend that you create a separate rule instead.
RECORD_TYPE is 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 AWS Billing and Cost Management User Guide.
LINKED_ACCOUNT, SERVICE_CODE,
RECORD_TYPE, and LINKED_ACCOUNT_NAME.
Root level OR is not supported. We recommend that you create a separate rule instead.
RECORD_TYPE is 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 AWS Billing and Cost Management User Guide.
public final CostCategoryInheritedValueDimension inheritedValue()
The value the line item will be categorized as, if the line item contains the matched dimension.
public final CostCategoryRuleType type()
You can define the CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. The INHERITED_VALUE 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.
If the service returns an enum value that is not available in the current SDK version, type will return
CostCategoryRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. The INHERITED_VALUE 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.CostCategoryRuleTypepublic final String typeAsString()
You can define the CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. The INHERITED_VALUE 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.
If the service returns an enum value that is not available in the current SDK version, type will return
CostCategoryRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
CostCategoryRule rule type as either REGULAR or
INHERITED_VALUE. The INHERITED_VALUE 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.CostCategoryRuleTypepublic CostCategoryRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CostCategoryRule.Builder,CostCategoryRule>public static CostCategoryRule.Builder builder()
public static Class<? extends CostCategoryRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.