Interface CfnCustomLineItem.CustomLineItemChargeDetailsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Jsii$Proxy
- Enclosing class:
CfnCustomLineItem
@Stability(Stable)
public static interface CfnCustomLineItem.CustomLineItemChargeDetailsProperty
extends software.amazon.jsii.JsiiSerializable
The charge details of a custom line item.
It should contain only one of Flat or Percentage .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.billingconductor.*;
CustomLineItemChargeDetailsProperty customLineItemChargeDetailsProperty = CustomLineItemChargeDetailsProperty.builder()
.type("type")
// the properties below are optional
.flat(CustomLineItemFlatChargeDetailsProperty.builder()
.chargeValue(123)
.build())
.lineItemFilters(List.of(LineItemFilterProperty.builder()
.attribute("attribute")
.matchOption("matchOption")
.values(List.of("values"))
.build()))
.percentage(CustomLineItemPercentageChargeDetailsProperty.builder()
.percentageValue(123)
// the properties below are optional
.childAssociatedResources(List.of("childAssociatedResources"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCustomLineItem.CustomLineItemChargeDetailsPropertystatic final classAn implementation forCfnCustomLineItem.CustomLineItemChargeDetailsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectgetFlat()ACustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.default ObjectA representation of the line item filter.default ObjectACustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.getType()The type of the custom line item that indicates whether the charge is a fee or credit.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of the custom line item that indicates whether the charge is a fee or credit.- See Also:
-
getFlat
ACustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.Returns union: either
IResolvableorCfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty- See Also:
-
getLineItemFilters
A representation of the line item filter.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCustomLineItem.LineItemFilterProperty>- See Also:
-
getPercentage
ACustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.Returns union: either
IResolvableorCfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty- See Also:
-
builder
-