withHazardousMaterials abstract method
- List<
HazardousMaterial> hazardousMaterials
Sets the hazardous materials transported in the vehicle.
hazardousMaterialsThe hazardous materials transported in the vehicle.
Returns VehicleSpecificationNetworkRestrictedTruckBuilder. The VehicleSpecificationNetworkRestrictedTruckBuilder object with the hazardous materiales transported in the vehicle set to the new value.
Implementation
VehicleSpecificationNetworkRestrictedTruckBuilder withHazardousMaterials(List<HazardousMaterial> hazardousMaterials);