Interface RouteTollPriceSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTollPriceSummary.Builder,RouteTollPriceSummary>,SdkBuilder<RouteTollPriceSummary.Builder,RouteTollPriceSummary>,SdkPojo
- Enclosing class:
- RouteTollPriceSummary
public static interface RouteTollPriceSummary.Builder extends SdkPojo, CopyableBuilder<RouteTollPriceSummary.Builder,RouteTollPriceSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteTollPriceSummary.Buildercurrency(String currency)Currency code corresponding to the price.RouteTollPriceSummary.Builderestimate(Boolean estimate)If the price is an estimate or an exact value.RouteTollPriceSummary.Builderrange(Boolean range)If the price is a range or an exact value.default RouteTollPriceSummary.BuilderrangeValue(Consumer<RouteTollPriceValueRange.Builder> rangeValue)Price range with a minimum and maximum value, if a range.RouteTollPriceSummary.BuilderrangeValue(RouteTollPriceValueRange rangeValue)Price range with a minimum and maximum value, if a range.RouteTollPriceSummary.Buildervalue(Double value)Exact price, if not a range.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
currency
RouteTollPriceSummary.Builder currency(String currency)
Currency code corresponding to the price. This is the same as Currency specified in the request.
- Parameters:
currency- Currency code corresponding to the price. This is the same as Currency specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimate
RouteTollPriceSummary.Builder estimate(Boolean estimate)
If the price is an estimate or an exact value.
- Parameters:
estimate- If the price is an estimate or an exact value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
range
RouteTollPriceSummary.Builder range(Boolean range)
If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.
- Parameters:
range- If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rangeValue
RouteTollPriceSummary.Builder rangeValue(RouteTollPriceValueRange rangeValue)
Price range with a minimum and maximum value, if a range.
- Parameters:
rangeValue- Price range with a minimum and maximum value, if a range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rangeValue
default RouteTollPriceSummary.Builder rangeValue(Consumer<RouteTollPriceValueRange.Builder> rangeValue)
Price range with a minimum and maximum value, if a range.
This is a convenience method that creates an instance of theRouteTollPriceValueRange.Builderavoiding the need to create one manually viaRouteTollPriceValueRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torangeValue(RouteTollPriceValueRange).- Parameters:
rangeValue- a consumer that will call methods onRouteTollPriceValueRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rangeValue(RouteTollPriceValueRange)
-
value
RouteTollPriceSummary.Builder value(Double value)
Exact price, if not a range.
- Parameters:
value- Exact price, if not a range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-