Class CfnCustomLineItem.LineItemFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.LineItemFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomLineItem.LineItemFilterProperty>
- Enclosing interface:
CfnCustomLineItem.LineItemFilterProperty
@Stability(Stable)
public static final class CfnCustomLineItem.LineItemFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomLineItem.LineItemFilterProperty>
A builder for
CfnCustomLineItem.LineItemFilterProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomLineItem.LineItemFilterProperty.getAttribute()
build()
Builds the configured instance.matchOption
(String matchOption) Sets the value ofCfnCustomLineItem.LineItemFilterProperty.getMatchOption()
Sets the value ofCfnCustomLineItem.LineItemFilterProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attribute
@Stability(Stable) public CfnCustomLineItem.LineItemFilterProperty.Builder attribute(String attribute) Sets the value ofCfnCustomLineItem.LineItemFilterProperty.getAttribute()
- Parameters:
attribute
- The attribute of the line item filter. This parameter is required. This specifies what attribute that you can filter on.- Returns:
this
-
matchOption
@Stability(Stable) public CfnCustomLineItem.LineItemFilterProperty.Builder matchOption(String matchOption) Sets the value ofCfnCustomLineItem.LineItemFilterProperty.getMatchOption()
- Parameters:
matchOption
- The match criteria of the line item filter. This parameter is required. This parameter specifies whether not to include the resource value from the billing group total cost.- Returns:
this
-
values
@Stability(Stable) public CfnCustomLineItem.LineItemFilterProperty.Builder values(List<String> values) Sets the value ofCfnCustomLineItem.LineItemFilterProperty.getValues()
- Parameters:
values
- The values of the line item filter. This parameter is required. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomLineItem.LineItemFilterProperty>
- Returns:
- a new instance of
CfnCustomLineItem.LineItemFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-