Class RouteTollPrice
- java.lang.Object
-
- software.amazon.awssdk.services.georoutes.model.RouteTollPrice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RouteTollPrice.Builder,RouteTollPrice>
@Generated("software.amazon.awssdk:codegen") public final class RouteTollPrice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RouteTollPrice.Builder,RouteTollPrice>
The toll price.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRouteTollPrice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouteTollPrice.Builderbuilder()Stringcurrency()Currency code corresponding to the price.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanestimate()If the price is an estimate or an exact value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongperDuration()Duration for which the price corresponds to.Booleanrange()If the price is a range or an exact value.RouteTollPriceValueRangerangeValue()Price range with a minimum and maximum value, if a range.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RouteTollPrice.Builder>serializableBuilderClass()RouteTollPrice.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doublevalue()Exact price, if not a range.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
currency
public final String currency()
Currency code corresponding to the price. This is the same as Currency specified in the request.
- Returns:
- Currency code corresponding to the price. This is the same as Currency specified in the request.
-
estimate
public final Boolean estimate()
If the price is an estimate or an exact value.
- Returns:
- If the price is an estimate or an exact value.
-
perDuration
public final Long perDuration()
Duration for which the price corresponds to.
Unit:
seconds- Returns:
- Duration for which the price corresponds to.
Unit:
seconds
-
range
public final 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.
- Returns:
- 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.
-
rangeValue
public final RouteTollPriceValueRange rangeValue()
Price range with a minimum and maximum value, if a range.
- Returns:
- Price range with a minimum and maximum value, if a range.
-
value
public final Double value()
Exact price, if not a range.
- Returns:
- Exact price, if not a range.
-
toBuilder
public RouteTollPrice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RouteTollPrice.Builder,RouteTollPrice>
-
builder
public static RouteTollPrice.Builder builder()
-
serializableBuilderClass
public static Class<? extends RouteTollPrice.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-