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) A unique, case-sensitive identifier that you specify to ensure idempotency of the request.computationRule(String computationRule) Sets the value of the ComputationRule property for this object.computationRule(ComputationRuleEnum computationRule) Sets the value of the ComputationRule property for this object.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.presentationDetails(Consumer<PresentationObject.Builder> presentationDetails) Sets the value of the PresentationDetails property for this object.presentationDetails(PresentationObject presentationDetails) Sets the value of the PresentationDetails property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
- Parameters:
clientToken- A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.- 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.
-
computationRule
Sets the value of the ComputationRule property for this object.- Parameters:
computationRule- The new value for the ComputationRule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
computationRule
Sets the value of the ComputationRule property for this object.- Parameters:
computationRule- The new value for the ComputationRule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
presentationDetails
Sets the value of the PresentationDetails property for this object.- Parameters:
presentationDetails- The new value for the PresentationDetails property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
presentationDetails
default CreateCustomLineItemRequest.Builder presentationDetails(Consumer<PresentationObject.Builder> presentationDetails) Sets the value of the PresentationDetails property for this object. This is a convenience method that creates an instance of thePresentationObject.Builderavoiding the need to create one manually viaPresentationObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topresentationDetails(PresentationObject).- Parameters:
presentationDetails- a consumer that will call methods onPresentationObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-