pub struct Builder { /* private fields */ }
Expand description
A builder for BatchCreateVehicleInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn vehicles(self, input: CreateVehicleRequestItem) -> Self
pub fn vehicles(self, input: CreateVehicleRequestItem) -> Self
Appends an item to vehicles
.
To override the contents of this collection use set_vehicles
.
A list of information about each vehicle to create. For more information, see the API data type.
sourcepub fn set_vehicles(self, input: Option<Vec<CreateVehicleRequestItem>>) -> Self
pub fn set_vehicles(self, input: Option<Vec<CreateVehicleRequestItem>>) -> Self
A list of information about each vehicle to create. For more information, see the API data type.
sourcepub fn build(self) -> Result<BatchCreateVehicleInput, BuildError>
pub fn build(self) -> Result<BatchCreateVehicleInput, BuildError>
Consumes the builder and constructs a BatchCreateVehicleInput
.