Struct aws_sdk_iotfleetwise::operation::create_vehicle::builders::CreateVehicleFluentBuilder
source · pub struct CreateVehicleFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateVehicle.
Creates a vehicle, which is an instance of a vehicle model (model manifest). Vehicles created from the same vehicle model consist of the same signals inherited from the vehicle model.
If you have an existing Amazon Web Services IoT thing, you can use Amazon Web Services IoT FleetWise to create a vehicle and collect data from your thing.
For more information, see Create a vehicle (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.
Implementations§
source§impl CreateVehicleFluentBuilder
impl CreateVehicleFluentBuilder
sourcepub fn as_input(&self) -> &CreateVehicleInputBuilder
pub fn as_input(&self) -> &CreateVehicleInputBuilder
Access the CreateVehicle as a reference.
sourcepub async fn send(
self,
) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateVehicleOutput, CreateVehicleError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateVehicleOutput, CreateVehicleError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn vehicle_name(self, input: impl Into<String>) -> Self
pub fn vehicle_name(self, input: impl Into<String>) -> Self
The unique ID of the vehicle to create.
sourcepub fn set_vehicle_name(self, input: Option<String>) -> Self
pub fn set_vehicle_name(self, input: Option<String>) -> Self
The unique ID of the vehicle to create.
sourcepub fn get_vehicle_name(&self) -> &Option<String>
pub fn get_vehicle_name(&self) -> &Option<String>
The unique ID of the vehicle to create.
sourcepub fn model_manifest_arn(self, input: impl Into<String>) -> Self
pub fn model_manifest_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name ARN of a vehicle model.
sourcepub fn set_model_manifest_arn(self, input: Option<String>) -> Self
pub fn set_model_manifest_arn(self, input: Option<String>) -> Self
The Amazon Resource Name ARN of a vehicle model.
sourcepub fn get_model_manifest_arn(&self) -> &Option<String>
pub fn get_model_manifest_arn(&self) -> &Option<String>
The Amazon Resource Name ARN of a vehicle model.
sourcepub fn decoder_manifest_arn(self, input: impl Into<String>) -> Self
pub fn decoder_manifest_arn(self, input: impl Into<String>) -> Self
The ARN of a decoder manifest.
sourcepub fn set_decoder_manifest_arn(self, input: Option<String>) -> Self
pub fn set_decoder_manifest_arn(self, input: Option<String>) -> Self
The ARN of a decoder manifest.
sourcepub fn get_decoder_manifest_arn(&self) -> &Option<String>
pub fn get_decoder_manifest_arn(&self) -> &Option<String>
The ARN of a decoder manifest.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
Static information about a vehicle in a key-value pair. For example: "engineType" : "1.3 L R2"
A campaign must include the keys (attribute names) in dataExtraDimensions for them to display in Amazon Timestream.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
Static information about a vehicle in a key-value pair. For example: "engineType" : "1.3 L R2"
A campaign must include the keys (attribute names) in dataExtraDimensions for them to display in Amazon Timestream.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
Static information about a vehicle in a key-value pair. For example: "engineType" : "1.3 L R2"
A campaign must include the keys (attribute names) in dataExtraDimensions for them to display in Amazon Timestream.
sourcepub fn association_behavior(self, input: VehicleAssociationBehavior) -> Self
pub fn association_behavior(self, input: VehicleAssociationBehavior) -> Self
An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing Amazon Web Services IoT thing as a vehicle.
Default:
sourcepub fn set_association_behavior(
self,
input: Option<VehicleAssociationBehavior>,
) -> Self
pub fn set_association_behavior( self, input: Option<VehicleAssociationBehavior>, ) -> Self
An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing Amazon Web Services IoT thing as a vehicle.
Default:
sourcepub fn get_association_behavior(&self) -> &Option<VehicleAssociationBehavior>
pub fn get_association_behavior(&self) -> &Option<VehicleAssociationBehavior>
An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing Amazon Web Services IoT thing as a vehicle.
Default:
Appends an item to tags.
To override the contents of this collection use set_tags.
Metadata that can be used to manage the vehicle.
Metadata that can be used to manage the vehicle.
Metadata that can be used to manage the vehicle.
Trait Implementations§
source§impl Clone for CreateVehicleFluentBuilder
impl Clone for CreateVehicleFluentBuilder
source§fn clone(&self) -> CreateVehicleFluentBuilder
fn clone(&self) -> CreateVehicleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateVehicleFluentBuilder
impl !RefUnwindSafe for CreateVehicleFluentBuilder
impl Send for CreateVehicleFluentBuilder
impl Sync for CreateVehicleFluentBuilder
impl Unpin for CreateVehicleFluentBuilder
impl !UnwindSafe for CreateVehicleFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more