@Generated(value="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 TravelMode as
Truck.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TruckDimensions.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TruckDimensions.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Double |
height()
The height of the truck.
|
Double |
length()
The length of the truck.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TruckDimensions.Builder> |
serializableBuilderClass() |
TruckDimensions.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
DimensionUnit |
unit()
Specifies the unit of measurement for the truck dimensions.
|
String |
unitAsString()
Specifies the unit of measurement for the truck dimensions.
|
Double |
width()
The width of the truck.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Double height()
The height of the truck.
For example, 4.5.
For example, 4.5.
public final Double length()
The length of the truck.
For example, 15.5.
For example, 15.5.
public final DimensionUnit unit()
Specifies the unit of measurement for the truck dimensions.
Default Value: Meters
If the service returns an enum value that is not available in the current SDK version, unit will return
DimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Default Value: Meters
DimensionUnitpublic final String unitAsString()
Specifies the unit of measurement for the truck dimensions.
Default Value: Meters
If the service returns an enum value that is not available in the current SDK version, unit will return
DimensionUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Default Value: Meters
DimensionUnitpublic final Double width()
The width of the truck.
For example, 4.5.
For example, 4.5.
public TruckDimensions.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TruckDimensions.Builder,TruckDimensions>public static TruckDimensions.Builder builder()
public static Class<? extends TruckDimensions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.