@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TruckDimensions extends Object implements Serializable, Cloneable, StructuredPojo
 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.
 
| Constructor and Description | 
|---|
| TruckDimensions() | 
| Modifier and Type | Method and Description | 
|---|---|
| TruckDimensions | clone() | 
| boolean | equals(Object obj) | 
| Double | getHeight()
 The height of the truck. | 
| Double | getLength()
 The length of the truck. | 
| String | getUnit()
 Specifies the unit of measurement for the truck dimensions. | 
| Double | getWidth()
 The width of the truck. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setHeight(Double height)
 The height of the truck. | 
| void | setLength(Double length)
 The length of the truck. | 
| void | setUnit(String unit)
 Specifies the unit of measurement for the truck dimensions. | 
| void | setWidth(Double width)
 The width of the truck. | 
| String | toString()Returns a string representation of this object. | 
| TruckDimensions | withHeight(Double height)
 The height of the truck. | 
| TruckDimensions | withLength(Double length)
 The length of the truck. | 
| TruckDimensions | withUnit(DimensionUnit unit)
 Specifies the unit of measurement for the truck dimensions. | 
| TruckDimensions | withUnit(String unit)
 Specifies the unit of measurement for the truck dimensions. | 
| TruckDimensions | withWidth(Double width)
 The width of the truck. | 
public void setLength(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.
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.
public Double getLength()
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.
         For example, 15.5.
         
For routes calculated with a HERE resource, this value must be between 0 and 300 meters.
public TruckDimensions withLength(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.
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.
public void setHeight(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.
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.
public Double getHeight()
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.
         For example, 4.5.
         
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
public TruckDimensions withHeight(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.
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.
public void setWidth(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.
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.
public Double getWidth()
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.
         For example, 4.5.
         
For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
public TruckDimensions withWidth(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.
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.
public void setUnit(String unit)
Specifies the unit of measurement for the truck dimensions.
 Default Value: Meters
 
unit - Specifies the unit of measurement for the truck dimensions.
        
        Default Value: Meters
DimensionUnitpublic String getUnit()
Specifies the unit of measurement for the truck dimensions.
 Default Value: Meters
 
         Default Value: Meters
DimensionUnitpublic TruckDimensions withUnit(String unit)
Specifies the unit of measurement for the truck dimensions.
 Default Value: Meters
 
unit - Specifies the unit of measurement for the truck dimensions.
        
        Default Value: Meters
DimensionUnitpublic TruckDimensions withUnit(DimensionUnit unit)
Specifies the unit of measurement for the truck dimensions.
 Default Value: Meters
 
unit - Specifies the unit of measurement for the truck dimensions.
        
        Default Value: Meters
DimensionUnitpublic String toString()
toString in class ObjectObject.toString()public TruckDimensions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.