Interface CreateCustomLineItemRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BillingconductorRequest.Builder,Buildable,CopyableBuilder<CreateCustomLineItemRequest.Builder,,CreateCustomLineItemRequest> SdkBuilder<CreateCustomLineItemRequest.Builder,,CreateCustomLineItemRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateCustomLineItemRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account in which this custom line item will be applied to.billingGroupArn(String billingGroupArn) The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.billingPeriodRange(Consumer<CustomLineItemBillingPeriodRange.Builder> billingPeriodRange) A time range for which the custom line item is effective.billingPeriodRange(CustomLineItemBillingPeriodRange billingPeriodRange) A time range for which the custom line item is effective.chargeDetails(Consumer<CustomLineItemChargeDetails.Builder> chargeDetails) ACustomLineItemChargeDetailsthat describes the charge details for a custom line item.chargeDetails(CustomLineItemChargeDetails chargeDetails) ACustomLineItemChargeDetailsthat describes the charge details for a custom line item.clientToken(String clientToken) The token that is needed to support idempotency.description(String description) The description of the custom line item.The name of the custom line item.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A map that contains tag keys and tag values that are attached to a custom line item.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.billingconductor.model.BillingconductorRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clientToken
The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
- Parameters:
clientToken- The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the custom line item.
- Parameters:
name- The name of the custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the custom line item. This is shown on the Bills page in association with the charge value.
- Parameters:
description- The description of the custom line item. This is shown on the Bills page in association with the charge value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
- Parameters:
billingGroupArn- The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriodRange
CreateCustomLineItemRequest.Builder billingPeriodRange(CustomLineItemBillingPeriodRange billingPeriodRange) A time range for which the custom line item is effective.
- Parameters:
billingPeriodRange- A time range for which the custom line item is effective.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriodRange
default CreateCustomLineItemRequest.Builder billingPeriodRange(Consumer<CustomLineItemBillingPeriodRange.Builder> billingPeriodRange) A time range for which the custom line item is effective.
This is a convenience method that creates an instance of theCustomLineItemBillingPeriodRange.Builderavoiding the need to create one manually viaCustomLineItemBillingPeriodRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobillingPeriodRange(CustomLineItemBillingPeriodRange).- Parameters:
billingPeriodRange- a consumer that will call methods onCustomLineItemBillingPeriodRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A map that contains tag keys and tag values that are attached to a custom line item.
- Parameters:
tags- A map that contains tag keys and tag values that are attached to a custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chargeDetails
A
CustomLineItemChargeDetailsthat describes the charge details for a custom line item.- Parameters:
chargeDetails- ACustomLineItemChargeDetailsthat describes the charge details for a custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chargeDetails
default CreateCustomLineItemRequest.Builder chargeDetails(Consumer<CustomLineItemChargeDetails.Builder> chargeDetails) A
This is a convenience method that creates an instance of theCustomLineItemChargeDetailsthat describes the charge details for a custom line item.CustomLineItemChargeDetails.Builderavoiding the need to create one manually viaCustomLineItemChargeDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochargeDetails(CustomLineItemChargeDetails).- Parameters:
chargeDetails- a consumer that will call methods onCustomLineItemChargeDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountId
The Amazon Web Services account in which this custom line item will be applied to.
- Parameters:
accountId- The Amazon Web Services account in which this custom line item will be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCustomLineItemRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCustomLineItemRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-