Interface RouteViolatedConstraints.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteViolatedConstraints.Builder,RouteViolatedConstraints>,SdkBuilder<RouteViolatedConstraints.Builder,RouteViolatedConstraints>,SdkPojo
- Enclosing class:
- RouteViolatedConstraints
public static interface RouteViolatedConstraints.Builder extends SdkPojo, CopyableBuilder<RouteViolatedConstraints.Builder,RouteViolatedConstraints>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteViolatedConstraints.BuilderallHazardsRestricted(Boolean allHazardsRestricted)This restriction applies to truck cargo, where the resulting route excludes roads on which hazardous materials are prohibited from being transported.default RouteViolatedConstraints.BuilderaxleCount(Consumer<RouteNoticeDetailRange.Builder> axleCount)Total number of axles of the vehicle.RouteViolatedConstraints.BuilderaxleCount(RouteNoticeDetailRange axleCount)Total number of axles of the vehicle.RouteViolatedConstraints.BuilderhazardousCargos(Collection<RouteHazardousCargoType> hazardousCargos)List of Hazardous cargo contained in the vehicle.RouteViolatedConstraints.BuilderhazardousCargos(RouteHazardousCargoType... hazardousCargos)List of Hazardous cargo contained in the vehicle.RouteViolatedConstraints.BuilderhazardousCargosWithStrings(String... hazardousCargos)List of Hazardous cargo contained in the vehicle.RouteViolatedConstraints.BuilderhazardousCargosWithStrings(Collection<String> hazardousCargos)List of Hazardous cargo contained in the vehicle.RouteViolatedConstraints.BuildermaxHeight(Long maxHeight)The maximum height of the vehicle.RouteViolatedConstraints.BuildermaxKpraLength(Long maxKpraLength)The maximum Kpra length of the vehicle.RouteViolatedConstraints.BuildermaxLength(Long maxLength)The maximum length of the vehicle.RouteViolatedConstraints.BuildermaxPayloadCapacity(Long maxPayloadCapacity)The maximum load capacity of the vehicle.default RouteViolatedConstraints.BuildermaxWeight(Consumer<RouteWeightConstraint.Builder> maxWeight)The maximum weight of the route.RouteViolatedConstraints.BuildermaxWeight(RouteWeightConstraint maxWeight)The maximum weight of the route.RouteViolatedConstraints.BuildermaxWeightPerAxle(Long maxWeightPerAxle)The maximum weight per axle of the vehicle.default RouteViolatedConstraints.BuildermaxWeightPerAxleGroup(Consumer<WeightPerAxleGroup.Builder> maxWeightPerAxleGroup)The maximum weight per axle group of the vehicle.RouteViolatedConstraints.BuildermaxWeightPerAxleGroup(WeightPerAxleGroup maxWeightPerAxleGroup)The maximum weight per axle group of the vehicle.RouteViolatedConstraints.BuildermaxWidth(Long maxWidth)The maximum width of the vehicle.default RouteViolatedConstraints.Builderoccupancy(Consumer<RouteNoticeDetailRange.Builder> occupancy)The number of occupants in the vehicle.RouteViolatedConstraints.Builderoccupancy(RouteNoticeDetailRange occupancy)The number of occupants in the vehicle.RouteViolatedConstraints.BuilderrestrictedTimes(String restrictedTimes)Access radius restrictions based on time.RouteViolatedConstraints.BuildertimeDependent(Boolean timeDependent)The time dependent constraint.default RouteViolatedConstraints.BuildertrailerCount(Consumer<RouteNoticeDetailRange.Builder> trailerCount)Number of trailers attached to the vehicle.RouteViolatedConstraints.BuildertrailerCount(RouteNoticeDetailRange trailerCount)Number of trailers attached to the vehicle.RouteViolatedConstraints.BuildertravelMode(Boolean travelMode)Travel mode corresponding to the leg.RouteViolatedConstraints.BuildertruckRoadType(String truckRoadType)Truck road type identifiers.RouteViolatedConstraints.BuildertruckType(String truckType)Type of the truck.RouteViolatedConstraints.BuildertruckType(RouteTruckType truckType)Type of the truck.RouteViolatedConstraints.BuildertunnelRestrictionCode(String tunnelRestrictionCode)The tunnel restriction code.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
allHazardsRestricted
RouteViolatedConstraints.Builder allHazardsRestricted(Boolean allHazardsRestricted)
This restriction applies to truck cargo, where the resulting route excludes roads on which hazardous materials are prohibited from being transported.
- Parameters:
allHazardsRestricted- This restriction applies to truck cargo, where the resulting route excludes roads on which hazardous materials are prohibited from being transported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
axleCount
RouteViolatedConstraints.Builder axleCount(RouteNoticeDetailRange axleCount)
Total number of axles of the vehicle.
- Parameters:
axleCount- Total number of axles of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
axleCount
default RouteViolatedConstraints.Builder axleCount(Consumer<RouteNoticeDetailRange.Builder> axleCount)
Total number of axles of the vehicle.
This is a convenience method that creates an instance of theRouteNoticeDetailRange.Builderavoiding the need to create one manually viaRouteNoticeDetailRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaxleCount(RouteNoticeDetailRange).- Parameters:
axleCount- a consumer that will call methods onRouteNoticeDetailRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
axleCount(RouteNoticeDetailRange)
-
hazardousCargosWithStrings
RouteViolatedConstraints.Builder hazardousCargosWithStrings(Collection<String> hazardousCargos)
List of Hazardous cargo contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargo contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargosWithStrings
RouteViolatedConstraints.Builder hazardousCargosWithStrings(String... hazardousCargos)
List of Hazardous cargo contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargo contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargos
RouteViolatedConstraints.Builder hazardousCargos(Collection<RouteHazardousCargoType> hazardousCargos)
List of Hazardous cargo contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargo contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargos
RouteViolatedConstraints.Builder hazardousCargos(RouteHazardousCargoType... hazardousCargos)
List of Hazardous cargo contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargo contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxHeight
RouteViolatedConstraints.Builder maxHeight(Long maxHeight)
The maximum height of the vehicle.
- Parameters:
maxHeight- The maximum height of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxKpraLength
RouteViolatedConstraints.Builder maxKpraLength(Long maxKpraLength)
The maximum Kpra length of the vehicle.
Unit:
centimeters- Parameters:
maxKpraLength- The maximum Kpra length of the vehicle.Unit:
centimeters- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxLength
RouteViolatedConstraints.Builder maxLength(Long maxLength)
The maximum length of the vehicle.
- Parameters:
maxLength- The maximum length of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPayloadCapacity
RouteViolatedConstraints.Builder maxPayloadCapacity(Long maxPayloadCapacity)
The maximum load capacity of the vehicle.
Unit:
kilograms- Parameters:
maxPayloadCapacity- The maximum load capacity of the vehicle.Unit:
kilograms- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWeight
RouteViolatedConstraints.Builder maxWeight(RouteWeightConstraint maxWeight)
The maximum weight of the route.
Unit:
Kilograms- Parameters:
maxWeight- The maximum weight of the route.Unit:
Kilograms- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWeight
default RouteViolatedConstraints.Builder maxWeight(Consumer<RouteWeightConstraint.Builder> maxWeight)
The maximum weight of the route.
Unit:
This is a convenience method that creates an instance of theKilogramsRouteWeightConstraint.Builderavoiding the need to create one manually viaRouteWeightConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomaxWeight(RouteWeightConstraint).- Parameters:
maxWeight- a consumer that will call methods onRouteWeightConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
maxWeight(RouteWeightConstraint)
-
maxWeightPerAxle
RouteViolatedConstraints.Builder maxWeightPerAxle(Long maxWeightPerAxle)
The maximum weight per axle of the vehicle.
Unit:
Kilograms- Parameters:
maxWeightPerAxle- The maximum weight per axle of the vehicle.Unit:
Kilograms- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWeightPerAxleGroup
RouteViolatedConstraints.Builder maxWeightPerAxleGroup(WeightPerAxleGroup maxWeightPerAxleGroup)
The maximum weight per axle group of the vehicle.
Unit:
Kilograms- Parameters:
maxWeightPerAxleGroup- The maximum weight per axle group of the vehicle.Unit:
Kilograms- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWeightPerAxleGroup
default RouteViolatedConstraints.Builder maxWeightPerAxleGroup(Consumer<WeightPerAxleGroup.Builder> maxWeightPerAxleGroup)
The maximum weight per axle group of the vehicle.
Unit:
This is a convenience method that creates an instance of theKilogramsWeightPerAxleGroup.Builderavoiding the need to create one manually viaWeightPerAxleGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomaxWeightPerAxleGroup(WeightPerAxleGroup).- Parameters:
maxWeightPerAxleGroup- a consumer that will call methods onWeightPerAxleGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
maxWeightPerAxleGroup(WeightPerAxleGroup)
-
maxWidth
RouteViolatedConstraints.Builder maxWidth(Long maxWidth)
The maximum width of the vehicle.
- Parameters:
maxWidth- The maximum width of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
occupancy
RouteViolatedConstraints.Builder occupancy(RouteNoticeDetailRange occupancy)
The number of occupants in the vehicle.
Default Value:
1- Parameters:
occupancy- The number of occupants in the vehicle.Default Value:
1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
occupancy
default RouteViolatedConstraints.Builder occupancy(Consumer<RouteNoticeDetailRange.Builder> occupancy)
The number of occupants in the vehicle.
Default Value:
This is a convenience method that creates an instance of the1RouteNoticeDetailRange.Builderavoiding the need to create one manually viaRouteNoticeDetailRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooccupancy(RouteNoticeDetailRange).- Parameters:
occupancy- a consumer that will call methods onRouteNoticeDetailRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
occupancy(RouteNoticeDetailRange)
-
restrictedTimes
RouteViolatedConstraints.Builder restrictedTimes(String restrictedTimes)
Access radius restrictions based on time.
- Parameters:
restrictedTimes- Access radius restrictions based on time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeDependent
RouteViolatedConstraints.Builder timeDependent(Boolean timeDependent)
The time dependent constraint.
- Parameters:
timeDependent- The time dependent constraint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trailerCount
RouteViolatedConstraints.Builder trailerCount(RouteNoticeDetailRange trailerCount)
Number of trailers attached to the vehicle.
Default Value:
0- Parameters:
trailerCount- Number of trailers attached to the vehicle.Default Value:
0- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trailerCount
default RouteViolatedConstraints.Builder trailerCount(Consumer<RouteNoticeDetailRange.Builder> trailerCount)
Number of trailers attached to the vehicle.
Default Value:
This is a convenience method that creates an instance of the0RouteNoticeDetailRange.Builderavoiding the need to create one manually viaRouteNoticeDetailRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrailerCount(RouteNoticeDetailRange).- Parameters:
trailerCount- a consumer that will call methods onRouteNoticeDetailRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
trailerCount(RouteNoticeDetailRange)
-
travelMode
RouteViolatedConstraints.Builder travelMode(Boolean travelMode)
Travel mode corresponding to the leg.
- Parameters:
travelMode- Travel mode corresponding to the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckRoadType
RouteViolatedConstraints.Builder truckRoadType(String truckRoadType)
Truck road type identifiers.
BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Parameters:
truckRoadType- Truck road type identifiers.BK1throughBK4apply only to Sweden.A2,A4,B2,B4,C,D,ET2,ET4apply only to Mexico.There are currently no other supported values as of 26th April 2024.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truckType
RouteViolatedConstraints.Builder truckType(String truckType)
Type of the truck.
- Parameters:
truckType- Type of the truck.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteTruckType,RouteTruckType
-
truckType
RouteViolatedConstraints.Builder truckType(RouteTruckType truckType)
Type of the truck.
- Parameters:
truckType- Type of the truck.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteTruckType,RouteTruckType
-
tunnelRestrictionCode
RouteViolatedConstraints.Builder tunnelRestrictionCode(String tunnelRestrictionCode)
The tunnel restriction code.
Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.
-
Tunnel Category B
-
Risk Level: Limited risk
-
Restrictions: Few restrictions
-
-
Tunnel Category C
-
Risk Level: Medium risk
-
Restrictions: Some restrictions
-
-
Tunnel Category D
-
Risk Level: High risk
-
Restrictions: Many restrictions occur
-
-
Tunnel Category E
-
Risk Level: Very high risk
-
Restrictions: Restricted tunnel
-
- Parameters:
tunnelRestrictionCode- The tunnel restriction code.Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.
-
Tunnel Category B
-
Risk Level: Limited risk
-
Restrictions: Few restrictions
-
-
Tunnel Category C
-
Risk Level: Medium risk
-
Restrictions: Some restrictions
-
-
Tunnel Category D
-
Risk Level: High risk
-
Restrictions: Many restrictions occur
-
-
Tunnel Category E
-
Risk Level: Very high risk
-
Restrictions: Restricted tunnel
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-