aws_sdk_iotfleetwise/client/batch_create_vehicle.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`BatchCreateVehicle`](crate::operation::batch_create_vehicle::builders::BatchCreateVehicleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`vehicles(CreateVehicleRequestItem)`](crate::operation::batch_create_vehicle::builders::BatchCreateVehicleFluentBuilder::vehicles) / [`set_vehicles(Option<Vec::<CreateVehicleRequestItem>>)`](crate::operation::batch_create_vehicle::builders::BatchCreateVehicleFluentBuilder::set_vehicles):<br>required: **true**<br><p>A list of information about each vehicle to create. For more information, see the API data type.</p><br>
7 /// - On success, responds with [`BatchCreateVehicleOutput`](crate::operation::batch_create_vehicle::BatchCreateVehicleOutput) with field(s):
8 /// - [`vehicles(Option<Vec::<CreateVehicleResponseItem>>)`](crate::operation::batch_create_vehicle::BatchCreateVehicleOutput::vehicles): <p>A list of information about a batch of created vehicles. For more information, see the API data type.</p>
9 /// - [`errors(Option<Vec::<CreateVehicleError>>)`](crate::operation::batch_create_vehicle::BatchCreateVehicleOutput::errors): <p>A list of information about creation errors, or an empty list if there aren't any errors.</p>
10 /// - On failure, responds with [`SdkError<BatchCreateVehicleError>`](crate::operation::batch_create_vehicle::BatchCreateVehicleError)
11 pub fn batch_create_vehicle(&self) -> crate::operation::batch_create_vehicle::builders::BatchCreateVehicleFluentBuilder {
12 crate::operation::batch_create_vehicle::builders::BatchCreateVehicleFluentBuilder::new(self.handle.clone())
13 }
14}