@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LineItemFilter extends Object implements Serializable, Cloneable, StructuredPojo
A representation of the line item filter for your custom line item. You can use line item filters to include or
exclude specific resource values from the billing group's total cost. For example, if you create a custom line item
and you want to filter out a value, such as Savings Plan discounts, you can update LineItemFilter
to
exclude it.
Constructor and Description |
---|
LineItemFilter() |
Modifier and Type | Method and Description |
---|---|
LineItemFilter |
clone() |
boolean |
equals(Object obj) |
String |
getAttribute()
The attribute of the line item filter.
|
String |
getMatchOption()
The match criteria of the line item filter.
|
List<String> |
getValues()
The values of the line item filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttribute(String attribute)
The attribute of the line item filter.
|
void |
setMatchOption(String matchOption)
The match criteria of the line item filter.
|
void |
setValues(Collection<String> values)
The values of the line item filter.
|
String |
toString()
Returns a string representation of this object.
|
LineItemFilter |
withAttribute(LineItemFilterAttributeName attribute)
The attribute of the line item filter.
|
LineItemFilter |
withAttribute(String attribute)
The attribute of the line item filter.
|
LineItemFilter |
withMatchOption(MatchOption matchOption)
The match criteria of the line item filter.
|
LineItemFilter |
withMatchOption(String matchOption)
The match criteria of the line item filter.
|
LineItemFilter |
withValues(Collection<String> values)
The values of the line item filter.
|
LineItemFilter |
withValues(LineItemFilterValue... values)
The values of the line item filter.
|
LineItemFilter |
withValues(String... values)
The values of the line item filter.
|
public void setAttribute(String attribute)
The attribute of the line item filter. This specifies what attribute that you can filter on.
attribute
- The attribute of the line item filter. This specifies what attribute that you can filter on.LineItemFilterAttributeName
public String getAttribute()
The attribute of the line item filter. This specifies what attribute that you can filter on.
LineItemFilterAttributeName
public LineItemFilter withAttribute(String attribute)
The attribute of the line item filter. This specifies what attribute that you can filter on.
attribute
- The attribute of the line item filter. This specifies what attribute that you can filter on.LineItemFilterAttributeName
public LineItemFilter withAttribute(LineItemFilterAttributeName attribute)
The attribute of the line item filter. This specifies what attribute that you can filter on.
attribute
- The attribute of the line item filter. This specifies what attribute that you can filter on.LineItemFilterAttributeName
public void setMatchOption(String matchOption)
The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.
matchOption
- The match criteria of the line item filter. This parameter specifies whether not to include the resource
value from the billing group total cost.MatchOption
public String getMatchOption()
The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.
MatchOption
public LineItemFilter withMatchOption(String matchOption)
The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.
matchOption
- The match criteria of the line item filter. This parameter specifies whether not to include the resource
value from the billing group total cost.MatchOption
public LineItemFilter withMatchOption(MatchOption matchOption)
The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.
matchOption
- The match criteria of the line item filter. This parameter specifies whether not to include the resource
value from the billing group total cost.MatchOption
public List<String> getValues()
The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
LineItemFilterValue
public void setValues(Collection<String> values)
The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
values
- The values of the line item filter. This specifies the values to filter on. Currently, you can only
exclude Savings Plan discounts.LineItemFilterValue
public LineItemFilter withValues(String... values)
The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values of the line item filter. This specifies the values to filter on. Currently, you can only
exclude Savings Plan discounts.LineItemFilterValue
public LineItemFilter withValues(Collection<String> values)
The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
values
- The values of the line item filter. This specifies the values to filter on. Currently, you can only
exclude Savings Plan discounts.LineItemFilterValue
public LineItemFilter withValues(LineItemFilterValue... values)
The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
values
- The values of the line item filter. This specifies the values to filter on. Currently, you can only
exclude Savings Plan discounts.LineItemFilterValue
public String toString()
toString
in class Object
Object.toString()
public LineItemFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.