aws_sdk_iotfleetwise/client/get_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 [`GetVehicle`](crate::operation::get_vehicle::builders::GetVehicleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`vehicle_name(impl Into<String>)`](crate::operation::get_vehicle::builders::GetVehicleFluentBuilder::vehicle_name) / [`set_vehicle_name(Option<String>)`](crate::operation::get_vehicle::builders::GetVehicleFluentBuilder::set_vehicle_name):<br>required: **true**<br><p>The ID of the vehicle to retrieve information about.</p><br>
7 /// - On success, responds with [`GetVehicleOutput`](crate::operation::get_vehicle::GetVehicleOutput) with field(s):
8 /// - [`vehicle_name(Option<String>)`](crate::operation::get_vehicle::GetVehicleOutput::vehicle_name): <p>The ID of the vehicle.</p>
9 /// - [`arn(Option<String>)`](crate::operation::get_vehicle::GetVehicleOutput::arn): <p>The Amazon Resource Name (ARN) of the vehicle to retrieve information about.</p>
10 /// - [`model_manifest_arn(Option<String>)`](crate::operation::get_vehicle::GetVehicleOutput::model_manifest_arn): <p>The ARN of a vehicle model (model manifest) associated with the vehicle.</p>
11 /// - [`decoder_manifest_arn(Option<String>)`](crate::operation::get_vehicle::GetVehicleOutput::decoder_manifest_arn): <p>The ARN of a decoder manifest associated with the vehicle.</p>
12 /// - [`attributes(Option<HashMap::<String, String>>)`](crate::operation::get_vehicle::GetVehicleOutput::attributes): <p>Static information about a vehicle in a key-value pair. For example:</p> <p><code>"engineType"</code> : <code>"1.3 L R2"</code></p>
13 /// - [`state_templates(Option<Vec::<StateTemplateAssociation>>)`](crate::operation::get_vehicle::GetVehicleOutput::state_templates): <p>State templates associated with the vehicle.</p>
14 /// - [`creation_time(Option<DateTime>)`](crate::operation::get_vehicle::GetVehicleOutput::creation_time): <p>The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
15 /// - [`last_modification_time(Option<DateTime>)`](crate::operation::get_vehicle::GetVehicleOutput::last_modification_time): <p>The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
16 /// - On failure, responds with [`SdkError<GetVehicleError>`](crate::operation::get_vehicle::GetVehicleError)
17 pub fn get_vehicle(&self) -> crate::operation::get_vehicle::builders::GetVehicleFluentBuilder {
18 crate::operation::get_vehicle::builders::GetVehicleFluentBuilder::new(self.handle.clone())
19 }
20}