public static class VehicleInfo.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VehicleInfo |
build()
Instantiates a new VehicleInfo object, which will also have any optional properties
that are already set on the Builder object that is calling this method.
|
VehicleInfo.Builder |
make(java.lang.String make)
Sets the make on the Builder.
|
VehicleInfo.Builder |
model(java.lang.String model)
Sets the model on the Builder.
|
VehicleInfo.Builder |
vin(java.lang.String vin)
Sets the vin on the Builder.
|
VehicleInfo.Builder |
year(java.lang.Integer year)
Sets the year on the Builder.
|
public VehicleInfo.Builder make(java.lang.String make)
make
- name of the make of a vehicle.public VehicleInfo.Builder vin(java.lang.String vin)
vin
- vin of the vehiclepublic VehicleInfo.Builder model(java.lang.String model)
model
- model of the vehiclepublic VehicleInfo.Builder year(java.lang.Integer year)
year
- year of the vehiclepublic VehicleInfo build()