Interface ConsumableDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConsumableDetails.Builder,,ConsumableDetails> SdkBuilder<ConsumableDetails.Builder,,ConsumableDetails> SdkPojo
- Enclosing class:
ConsumableDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConsumableDetails.BuilderallocatedAmount(Consumer<MonetaryValue.Builder> allocatedAmount) The total amount of the consumable benefit that has been allocated.allocatedAmount(MonetaryValue allocatedAmount) The total amount of the consumable benefit that has been allocated.default ConsumableDetails.BuilderissuanceDetails(Consumer<IssuanceDetail.Builder> issuanceDetails) Detailed information about how the consumable benefit was issued and distributed.issuanceDetails(IssuanceDetail issuanceDetails) Detailed information about how the consumable benefit was issued and distributed.default ConsumableDetails.BuilderremainingAmount(Consumer<MonetaryValue.Builder> remainingAmount) The remaining amount of the consumable benefit that is still available for use.remainingAmount(MonetaryValue remainingAmount) The remaining amount of the consumable benefit that is still available for use.default ConsumableDetails.BuilderutilizedAmount(Consumer<MonetaryValue.Builder> utilizedAmount) The amount of the consumable benefit that has already been used.utilizedAmount(MonetaryValue utilizedAmount) The amount of the consumable benefit that has already been used.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 the consumable benefit that has been allocated.
- Parameters:
allocatedAmount- The total amount of the consumable benefit that has been allocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocatedAmount
The total amount of the consumable benefit that has been allocated.
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:
-
remainingAmount
The remaining amount of the consumable benefit that is still available for use.
- Parameters:
remainingAmount- The remaining amount of the consumable benefit that is still available for use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remainingAmount
The remaining amount of the consumable benefit that is still 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 toremainingAmount(MonetaryValue).- Parameters:
remainingAmount- 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:
-
utilizedAmount
The amount of the consumable benefit that has already been used.
- Parameters:
utilizedAmount- The amount of the consumable benefit that has already been used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizedAmount
The amount of the consumable benefit that has already been used.
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 toutilizedAmount(MonetaryValue).- Parameters:
utilizedAmount- 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:
-
issuanceDetails
Detailed information about how the consumable benefit was issued and distributed.
- Parameters:
issuanceDetails- Detailed information about how the consumable benefit was issued and distributed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
issuanceDetails
Detailed information about how the consumable benefit was issued and distributed.
This is a convenience method that creates an instance of theIssuanceDetail.Builderavoiding the need to create one manually viaIssuanceDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toissuanceDetails(IssuanceDetail).- Parameters:
issuanceDetails- a consumer that will call methods onIssuanceDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-