Interface RecommendedCreditPack.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendedCreditPack.Builder,,RecommendedCreditPack> SdkBuilder<RecommendedCreditPack.Builder,,RecommendedCreditPack> SdkPojo
- Enclosing class:
RecommendedCreditPack
@Mutable
@NotThreadSafe
public static interface RecommendedCreditPack.Builder
extends SdkPojo, CopyableBuilder<RecommendedCreditPack.Builder,RecommendedCreditPack>
-
Method Summary
Modifier and TypeMethodDescriptionactionName(String actionName) Sets the value of the ActionName property for this object.Pack name shown to buyers.default RecommendedCreditPack.Builderprice(Consumer<Price.Builder> price) The pack price.The pack price.Units in the pack.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
-
name
Pack name shown to buyers.
- Parameters:
name- Pack name shown to buyers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionName
Sets the value of the ActionName property for this object.- Parameters:
actionName- The new value for the ActionName property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantity
Units in the pack.
- Parameters:
quantity- Units in the pack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The pack price.
- Parameters:
price- The pack price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The pack price.
This is a convenience method that creates an instance of thePrice.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprice(Price).- Parameters:
price- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-