Interface CreditDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreditDetails.Builder,,CreditDetails> SdkBuilder<CreditDetails.Builder,,CreditDetails> SdkPojo
- Enclosing class:
CreditDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreditDetails.BuilderallocatedAmount(Consumer<MonetaryValue.Builder> allocatedAmount) The total amount of credits that have been allocated for this benefit.allocatedAmount(MonetaryValue allocatedAmount) The total amount of credits that have been allocated for this benefit.codes(Collection<CreditCode> codes) A list of credit codes that have been generated for this benefit allocation.codes(Consumer<CreditCode.Builder>... codes) A list of credit codes that have been generated for this benefit allocation.codes(CreditCode... codes) A list of credit codes that have been generated for this benefit allocation.default CreditDetails.BuilderissuedAmount(Consumer<MonetaryValue.Builder> issuedAmount) The amount of credits that have actually been issued and are available for use.issuedAmount(MonetaryValue issuedAmount) The amount of credits that have actually been issued and are available for use.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
-
allocatedAmount
The total amount of credits that have been allocated for this benefit.
- Parameters:
allocatedAmount- The total amount of credits that have been allocated for this benefit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocatedAmount
The total amount of credits that have been allocated for this benefit.
This is a convenience method that creates an instance of theMonetaryValue.Builderavoiding the need to create one manually viaMonetaryValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallocatedAmount(MonetaryValue).- Parameters:
allocatedAmount- a consumer that will call methods onMonetaryValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
issuedAmount
The amount of credits that have actually been issued and are available for use.
- Parameters:
issuedAmount- The amount of credits that have actually been issued and are available for use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
issuedAmount
The amount of credits that have actually been issued and are available for use.
This is a convenience method that creates an instance of theMonetaryValue.Builderavoiding the need to create one manually viaMonetaryValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toissuedAmount(MonetaryValue).- Parameters:
issuedAmount- a consumer that will call methods onMonetaryValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codes
A list of credit codes that have been generated for this benefit allocation.
- Parameters:
codes- A list of credit codes that have been generated for this benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codes
A list of credit codes that have been generated for this benefit allocation.
- Parameters:
codes- A list of credit codes that have been generated for this benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codes
A list of credit codes that have been generated for this benefit allocation.
This is a convenience method that creates an instance of theCreditCode.Builderavoiding the need to create one manually viaCreditCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodes(List<CreditCode>).- Parameters:
codes- a consumer that will call methods onCreditCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-