@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) |
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.LineItemFilterAttributeNamepublic String getAttribute()
The attribute of the line item filter. This specifies what attribute that you can filter on.
LineItemFilterAttributeNamepublic 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.LineItemFilterAttributeNamepublic 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.LineItemFilterAttributeNamepublic 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.MatchOptionpublic 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.
MatchOptionpublic 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.MatchOptionpublic 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.MatchOptionpublic 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.
LineItemFilterValuepublic 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.LineItemFilterValuepublic 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.LineItemFilterValuepublic 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.LineItemFilterValuepublic 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.LineItemFilterValuepublic String toString()
toString in class ObjectObject.toString()public LineItemFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.