@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TruckWeight extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the truck's weight specifications. Used to avoid roads that can't support or allow the total
weight for requests that specify TravelMode as Truck.
| Constructor and Description |
|---|
TruckWeight() |
| Modifier and Type | Method and Description |
|---|---|
TruckWeight |
clone() |
boolean |
equals(Object obj) |
Double |
getTotal()
The total weight of the truck.
|
String |
getUnit()
The unit of measurement to use for the truck weight.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTotal(Double total)
The total weight of the truck.
|
void |
setUnit(String unit)
The unit of measurement to use for the truck weight.
|
String |
toString()
Returns a string representation of this object.
|
TruckWeight |
withTotal(Double total)
The total weight of the truck.
|
TruckWeight |
withUnit(String unit)
The unit of measurement to use for the truck weight.
|
TruckWeight |
withUnit(VehicleWeightUnit unit)
The unit of measurement to use for the truck weight.
|
public void setTotal(Double total)
The total weight of the truck.
For example, 3500.
total - The total weight of the truck.
For example, 3500.
public Double getTotal()
The total weight of the truck.
For example, 3500.
For example, 3500.
public TruckWeight withTotal(Double total)
The total weight of the truck.
For example, 3500.
total - The total weight of the truck.
For example, 3500.
public void setUnit(String unit)
The unit of measurement to use for the truck weight.
Default Value: Kilograms
unit - The unit of measurement to use for the truck weight.
Default Value: Kilograms
VehicleWeightUnitpublic String getUnit()
The unit of measurement to use for the truck weight.
Default Value: Kilograms
Default Value: Kilograms
VehicleWeightUnitpublic TruckWeight withUnit(String unit)
The unit of measurement to use for the truck weight.
Default Value: Kilograms
unit - The unit of measurement to use for the truck weight.
Default Value: Kilograms
VehicleWeightUnitpublic TruckWeight withUnit(VehicleWeightUnit unit)
The unit of measurement to use for the truck weight.
Default Value: Kilograms
unit - The unit of measurement to use for the truck weight.
Default Value: Kilograms
VehicleWeightUnitpublic String toString()
toString in class ObjectObject.toString()public TruckWeight clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.