@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategoryRule extends Object implements Serializable, Cloneable, StructuredPojo
Cost Category is in public beta for AWS Billing and Cost Management and is subject to change. Your use of Cost Categories is subject to the Beta Service Participation terms of the AWS Service Terms (Section 1.10).
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.
Constructor and Description |
---|
CostCategoryRule() |
Modifier and Type | Method and Description |
---|---|
CostCategoryRule |
clone() |
boolean |
equals(Object obj) |
Expression |
getRule()
An Expression
object used to categorize costs.
|
String |
getValue() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setRule(Expression rule)
An Expression
object used to categorize costs.
|
void |
setValue(String value) |
String |
toString()
Returns a string representation of this object.
|
CostCategoryRule |
withRule(Expression rule)
An Expression
object used to categorize costs.
|
CostCategoryRule |
withValue(String value) |
public void setValue(String value)
value
- public String getValue()
public CostCategoryRule withValue(String value)
value
- public void setRule(Expression rule)
An Expression
object used to categorize costs. This supports dimensions, Tags, and nested expressions. Currently the only
dimensions supported is LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
rule
- An Expression
object used to categorize costs. This supports dimensions, Tags, and nested expressions. Currently
the only dimensions supported is LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
public Expression getRule()
An Expression
object used to categorize costs. This supports dimensions, Tags, and nested expressions. Currently the only
dimensions supported is LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
public CostCategoryRule withRule(Expression rule)
An Expression
object used to categorize costs. This supports dimensions, Tags, and nested expressions. Currently the only
dimensions supported is LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
rule
- An Expression
object used to categorize costs. This supports dimensions, Tags, and nested expressions. Currently
the only dimensions supported is LINKED_ACCOUNT
.
Root level OR
is not supported. We recommend you create a separate rule instead.
public String toString()
toString
in class Object
Object.toString()
public CostCategoryRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.