Struct aws_sdk_iotfleetwise::client::fluent_builders::CreateVehicle
source · pub struct CreateVehicle { /* 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 CreateVehicle
impl CreateVehicle
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateVehicle, AwsResponseRetryClassifier>, SdkError<CreateVehicleError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateVehicle, AwsResponseRetryClassifier>, SdkError<CreateVehicleError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError>>
pub async fn send(
self
) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError>>
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 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 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 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 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"
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"
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:
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.
Trait Implementations§
source§impl Clone for CreateVehicle
impl Clone for CreateVehicle
source§fn clone(&self) -> CreateVehicle
fn clone(&self) -> CreateVehicle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more