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