Interface RoadSnapTruckOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RoadSnapTruckOptions.Builder,RoadSnapTruckOptions>,SdkBuilder<RoadSnapTruckOptions.Builder,RoadSnapTruckOptions>,SdkPojo
- Enclosing class:
- RoadSnapTruckOptions
public static interface RoadSnapTruckOptions.Builder extends SdkPojo, CopyableBuilder<RoadSnapTruckOptions.Builder,RoadSnapTruckOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RoadSnapTruckOptions.BuildergrossWeight(Long grossWeight)Gross weight of the vehicle including trailers, and goods at capacity.RoadSnapTruckOptions.BuilderhazardousCargos(Collection<RoadSnapHazardousCargoType> hazardousCargos)List of Hazardous cargos contained in the vehicle.RoadSnapTruckOptions.BuilderhazardousCargos(RoadSnapHazardousCargoType... hazardousCargos)List of Hazardous cargos contained in the vehicle.RoadSnapTruckOptions.BuilderhazardousCargosWithStrings(String... hazardousCargos)List of Hazardous cargos contained in the vehicle.RoadSnapTruckOptions.BuilderhazardousCargosWithStrings(Collection<String> hazardousCargos)List of Hazardous cargos contained in the vehicle.RoadSnapTruckOptions.Builderheight(Long height)Height of the vehicle.RoadSnapTruckOptions.Builderlength(Long length)Length of the vehicle.default RoadSnapTruckOptions.Buildertrailer(Consumer<RoadSnapTrailerOptions.Builder> trailer)Trailer options corresponding to the vehicle.RoadSnapTruckOptions.Buildertrailer(RoadSnapTrailerOptions trailer)Trailer options corresponding to the vehicle.RoadSnapTruckOptions.BuildertunnelRestrictionCode(String tunnelRestrictionCode)The tunnel restriction code.RoadSnapTruckOptions.Builderwidth(Long width)Width of the vehicle in centimenters.-
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
-
grossWeight
RoadSnapTruckOptions.Builder grossWeight(Long grossWeight)
Gross weight of the vehicle including trailers, and goods at capacity.
Unit:
Kilograms- Parameters:
grossWeight- Gross weight of the vehicle including trailers, and goods at capacity.Unit:
Kilograms- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargosWithStrings
RoadSnapTruckOptions.Builder hazardousCargosWithStrings(Collection<String> hazardousCargos)
List of Hazardous cargos contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargos contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargosWithStrings
RoadSnapTruckOptions.Builder hazardousCargosWithStrings(String... hazardousCargos)
List of Hazardous cargos contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargos contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargos
RoadSnapTruckOptions.Builder hazardousCargos(Collection<RoadSnapHazardousCargoType> hazardousCargos)
List of Hazardous cargos contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargos contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hazardousCargos
RoadSnapTruckOptions.Builder hazardousCargos(RoadSnapHazardousCargoType... hazardousCargos)
List of Hazardous cargos contained in the vehicle.
- Parameters:
hazardousCargos- List of Hazardous cargos contained in the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
height
RoadSnapTruckOptions.Builder height(Long height)
Height of the vehicle.
Unit:
centimeters- Parameters:
height- Height of the vehicle.Unit:
centimeters- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
length
RoadSnapTruckOptions.Builder length(Long length)
Length of the vehicle.
Unit:
centimeters- Parameters:
length- Length of the vehicle.Unit:
centimeters- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trailer
RoadSnapTruckOptions.Builder trailer(RoadSnapTrailerOptions trailer)
Trailer options corresponding to the vehicle.
- Parameters:
trailer- Trailer options corresponding to the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trailer
default RoadSnapTruckOptions.Builder trailer(Consumer<RoadSnapTrailerOptions.Builder> trailer)
Trailer options corresponding to the vehicle.
This is a convenience method that creates an instance of theRoadSnapTrailerOptions.Builderavoiding the need to create one manually viaRoadSnapTrailerOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrailer(RoadSnapTrailerOptions).- Parameters:
trailer- a consumer that will call methods onRoadSnapTrailerOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
trailer(RoadSnapTrailerOptions)
-
tunnelRestrictionCode
RoadSnapTruckOptions.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.
-
-
width
RoadSnapTruckOptions.Builder width(Long width)
Width of the vehicle in centimenters.
- Parameters:
width- Width of the vehicle in centimenters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-