Interface CreditAllocationHistoryEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreditAllocationHistoryEntry.Builder,,CreditAllocationHistoryEntry> SdkBuilder<CreditAllocationHistoryEntry.Builder,,CreditAllocationHistoryEntry> SdkPojo
- Enclosing class:
CreditAllocationHistoryEntry
@Mutable
@NotThreadSafe
public static interface CreditAllocationHistoryEntry.Builder
extends SdkPojo, CopyableBuilder<CreditAllocationHistoryEntry.Builder,CreditAllocationHistoryEntry>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account the credit was applied to.appliedServiceName(String appliedServiceName) The Amazon Web Services service the credit was applied to.billingMonth(String billingMonth) The billing month of the application inYYYY-MMformat.creditAmount(Consumer<Amount.Builder> creditAmount) The amount of credit applied.creditAmount(Amount creditAmount) The amount of credit applied.The identifier of the credit that was applied.description(String description) A human-readable description of the credit allocation.isEstimatedBill(Boolean isEstimatedBill) truewhen the entry was applied to an in-flight bill that has not yet been finalized.Methods 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
-
creditId
The identifier of the credit that was applied.
- Parameters:
creditId- The identifier of the credit that was applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditAmount
The amount of credit applied. Negative values represent credits that reduced the bill.
- Parameters:
creditAmount- The amount of credit applied. Negative values represent credits that reduced the bill.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditAmount
The amount of credit applied. Negative values represent credits that reduced the bill.
This is a convenience method that creates an instance of theAmount.Builderavoiding the need to create one manually viaAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreditAmount(Amount).- Parameters:
creditAmount- a consumer that will call methods onAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A human-readable description of the credit allocation.
- Parameters:
description- A human-readable description of the credit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account the credit was applied to.
- Parameters:
accountId- The Amazon Web Services account the credit was applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appliedServiceName
The Amazon Web Services service the credit was applied to.
- Parameters:
appliedServiceName- The Amazon Web Services service the credit was applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingMonth
The billing month of the application in
YYYY-MMformat.- Parameters:
billingMonth- The billing month of the application inYYYY-MMformat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEstimatedBill
truewhen the entry was applied to an in-flight bill that has not yet been finalized.- Parameters:
isEstimatedBill-truewhen the entry was applied to an in-flight bill that has not yet been finalized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-