Interface PriceRange.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PriceRange.Builder,,PriceRange> SdkBuilder<PriceRange.Builder,,PriceRange> SdkPojo
- Enclosing class:
PriceRange
@Mutable
@NotThreadSafe
public static interface PriceRange.Builder
extends SdkPojo, CopyableBuilder<PriceRange.Builder,PriceRange>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PriceRange.Builderhigh(Consumer<Price.Builder> high) The highest price in the range.The highest price in the range.default PriceRange.Builderlow(Consumer<Price.Builder> low) The lowest price in the range.The lowest price in the range.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
-
low
The lowest price in the range.
- Parameters:
low- The lowest price in the range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
low
The lowest price in the range.
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 tolow(Price).- Parameters:
low- 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:
-
high
The highest price in the range.
- Parameters:
high- The highest price in the range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
high
The highest price in the range.
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 tohigh(Price).- Parameters:
high- 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:
-