@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 setHeight(Double height)
The height of the truck.
For example, 4.5
.
height
- The height of the truck.
For example, 4.5
.
public Double getHeight()
The height of the truck.
For example, 4.5
.
For example, 4.5
.
public TruckDimensions withHeight(Double height)
The height of the truck.
For example, 4.5
.
height
- The height of the truck.
For example, 4.5
.
public void setLength(Double length)
The length of the truck.
For example, 15.5
.
length
- The length of the truck.
For example, 15.5
.
public Double getLength()
The length of the truck.
For example, 15.5
.
For example, 15.5
.
public TruckDimensions withLength(Double length)
The length of the truck.
For example, 15.5
.
length
- The length of the truck.
For example, 15.5
.
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
DimensionUnit
public String getUnit()
Specifies the unit of measurement for the truck dimensions.
Default Value: Meters
Default Value: Meters
DimensionUnit
public 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
DimensionUnit
public 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
DimensionUnit
public void setWidth(Double width)
The width of the truck.
For example, 4.5
.
width
- The width of the truck.
For example, 4.5
.
public Double getWidth()
The width of the truck.
For example, 4.5
.
For example, 4.5
.
public TruckDimensions withWidth(Double width)
The width of the truck.
For example, 4.5
.
width
- The width of the truck.
For example, 4.5
.
public String toString()
toString
in class Object
Object.toString()
public TruckDimensions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.