Interface UnitPrice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UnitPrice.Builder,,UnitPrice> SdkBuilder<UnitPrice.Builder,,UnitPrice> SdkPojo
- Enclosing class:
UnitPrice
@Mutable
@NotThreadSafe
public static interface UnitPrice.Builder
extends SdkPojo, CopyableBuilder<UnitPrice.Builder,UnitPrice>
-
Method Summary
Modifier and TypeMethodDescriptionactionName(String actionName) Sets the value of the ActionName property for this object.default UnitPrice.Builderprice(Consumer<Price.Builder> price) The price per use.The price per 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
-
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.
-
price
The price per use.
- Parameters:
price- The price per use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The price per use.
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:
-