Class TruckDimensions
- java.lang.Object
-
- software.amazon.awssdk.services.location.model.TruckDimensions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TruckDimensions.Builder,TruckDimensions>
@Generated("software.amazon.awssdk:codegen") public final class TruckDimensions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TruckDimensions.Builder,TruckDimensions>
Contains details about the truck dimensions in the unit of measurement that you specify. Used to filter out roads that can't support or allow the specified dimensions for requests that specify
TravelModeasTruck.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTruckDimensions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TruckDimensions.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doubleheight()The height of the truck.Doublelength()The length of the truck.List<SdkField<?>>sdkFields()static Class<? extends TruckDimensions.Builder>serializableBuilderClass()TruckDimensions.BuildertoBuilder()StringtoString()Returns a string representation of this object.DimensionUnitunit()Specifies the unit of measurement for the truck dimensions.StringunitAsString()Specifies the unit of measurement for the truck dimensions.Doublewidth()The width of the truck.-
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
-
height
public final Double height()
The height of the truck.
-
For example,
4.5.
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
- Returns:
- The height of the truck.
-
For example,
4.5.
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
-
-
-
length
public final Double length()
The length of the truck.
-
For example,
15.5.
For routes calculated with a HERE resource, this value must be between 0 and 300 meters.
- Returns:
- The length of the truck.
-
For example,
15.5.
For routes calculated with a HERE resource, this value must be between 0 and 300 meters.
-
-
-
unit
public final DimensionUnit unit()
Specifies the unit of measurement for the truck dimensions.
Default Value:
MetersIf the service returns an enum value that is not available in the current SDK version,
unitwill returnDimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Specifies the unit of measurement for the truck dimensions.
Default Value:
Meters - See Also:
DimensionUnit
-
unitAsString
public final String unitAsString()
Specifies the unit of measurement for the truck dimensions.
Default Value:
MetersIf the service returns an enum value that is not available in the current SDK version,
unitwill returnDimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Specifies the unit of measurement for the truck dimensions.
Default Value:
Meters - See Also:
DimensionUnit
-
width
public final Double width()
The width of the truck.
-
For example,
4.5.
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
- Returns:
- The width of the truck.
-
For example,
4.5.
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
-
-
-
toBuilder
public TruckDimensions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TruckDimensions.Builder,TruckDimensions>
-
builder
public static TruckDimensions.Builder builder()
-
serializableBuilderClass
public static Class<? extends TruckDimensions.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.
-
-