Interface CostCover.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CostCover.Builder,,CostCover> SdkBuilder<CostCover.Builder,,CostCover> SdkPojo
- Enclosing class:
CostCover
@Mutable
@NotThreadSafe
public static interface CostCover.Builder
extends SdkPojo, CopyableBuilder<CostCover.Builder,CostCover>
-
Method Summary
Modifier and TypeMethodDescriptionThe target margin this price covers.default CostCover.Builderprice(Consumer<Price.Builder> price) Up to 4 decimal places.Up to 4 decimal places.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
-
margin
The target margin this price covers.
- Parameters:
margin- The target margin this price covers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
Up to 4 decimal places.
- Parameters:
price- Up to 4 decimal places.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
Up to 4 decimal places.
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:
-