@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CalculateRouteTruckModeOptions extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about additional route preferences for requests that specify TravelMode
as
Truck
.
Constructor and Description |
---|
CalculateRouteTruckModeOptions() |
Modifier and Type | Method and Description |
---|---|
CalculateRouteTruckModeOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAvoidFerries()
Avoids ferries when calculating routes.
|
Boolean |
getAvoidTolls()
Avoids ferries when calculating routes.
|
TruckDimensions |
getDimensions()
Specifies the truck's dimension specifications including length, height, width, and unit of measurement.
|
TruckWeight |
getWeight()
Specifies the truck's weight specifications including total weight and unit of measurement.
|
int |
hashCode() |
Boolean |
isAvoidFerries()
Avoids ferries when calculating routes.
|
Boolean |
isAvoidTolls()
Avoids ferries when calculating routes.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvoidFerries(Boolean avoidFerries)
Avoids ferries when calculating routes.
|
void |
setAvoidTolls(Boolean avoidTolls)
Avoids ferries when calculating routes.
|
void |
setDimensions(TruckDimensions dimensions)
Specifies the truck's dimension specifications including length, height, width, and unit of measurement.
|
void |
setWeight(TruckWeight weight)
Specifies the truck's weight specifications including total weight and unit of measurement.
|
String |
toString()
Returns a string representation of this object.
|
CalculateRouteTruckModeOptions |
withAvoidFerries(Boolean avoidFerries)
Avoids ferries when calculating routes.
|
CalculateRouteTruckModeOptions |
withAvoidTolls(Boolean avoidTolls)
Avoids ferries when calculating routes.
|
CalculateRouteTruckModeOptions |
withDimensions(TruckDimensions dimensions)
Specifies the truck's dimension specifications including length, height, width, and unit of measurement.
|
CalculateRouteTruckModeOptions |
withWeight(TruckWeight weight)
Specifies the truck's weight specifications including total weight and unit of measurement.
|
public void setAvoidFerries(Boolean avoidFerries)
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
avoidFerries
- Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
public Boolean getAvoidFerries()
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
Default Value: false
Valid Values: false
| true
public CalculateRouteTruckModeOptions withAvoidFerries(Boolean avoidFerries)
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
avoidFerries
- Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
public Boolean isAvoidFerries()
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
Default Value: false
Valid Values: false
| true
public void setAvoidTolls(Boolean avoidTolls)
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
avoidTolls
- Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
public Boolean getAvoidTolls()
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
Default Value: false
Valid Values: false
| true
public CalculateRouteTruckModeOptions withAvoidTolls(Boolean avoidTolls)
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
avoidTolls
- Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
public Boolean isAvoidTolls()
Avoids ferries when calculating routes.
Default Value: false
Valid Values: false
| true
Default Value: false
Valid Values: false
| true
public void setDimensions(TruckDimensions dimensions)
Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
dimensions
- Specifies the truck's dimension specifications including length, height, width, and unit of measurement.
Used to avoid roads that can't support the truck's dimensions.public TruckDimensions getDimensions()
Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
public CalculateRouteTruckModeOptions withDimensions(TruckDimensions dimensions)
Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
dimensions
- Specifies the truck's dimension specifications including length, height, width, and unit of measurement.
Used to avoid roads that can't support the truck's dimensions.public void setWeight(TruckWeight weight)
Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
weight
- Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid
roads that can't support the truck's weight.public TruckWeight getWeight()
Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
public CalculateRouteTruckModeOptions withWeight(TruckWeight weight)
Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
weight
- Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid
roads that can't support the truck's weight.public String toString()
toString
in class Object
Object.toString()
public CalculateRouteTruckModeOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.