#[non_exhaustive]pub struct CreateVehicleRequestItem {
pub vehicle_name: String,
pub model_manifest_arn: String,
pub decoder_manifest_arn: String,
pub attributes: Option<HashMap<String, String>>,
pub association_behavior: Option<VehicleAssociationBehavior>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Information about the vehicle to create.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.vehicle_name: String
The unique ID of the vehicle to create.
model_manifest_arn: String
The ARN of the vehicle model (model manifest) to create the vehicle from.
decoder_manifest_arn: String
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
attributes: Option<HashMap<String, String>>
Static information about a vehicle in a key-value pair. For example: "engine Type"
: "v6"
association_behavior: Option<VehicleAssociationBehavior>
An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing thing as a vehicle.
Metadata which can be used to manage the vehicle.
Implementations§
source§impl CreateVehicleRequestItem
impl CreateVehicleRequestItem
sourcepub fn vehicle_name(&self) -> &str
pub fn vehicle_name(&self) -> &str
The unique ID of the vehicle to create.
sourcepub fn model_manifest_arn(&self) -> &str
pub fn model_manifest_arn(&self) -> &str
The ARN of the vehicle model (model manifest) to create the vehicle from.
sourcepub fn decoder_manifest_arn(&self) -> &str
pub fn decoder_manifest_arn(&self) -> &str
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
Static information about a vehicle in a key-value pair. For example: "engine Type"
: "v6"
sourcepub fn association_behavior(&self) -> Option<&VehicleAssociationBehavior>
pub fn 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 thing as a vehicle.
Metadata which can be used to manage the vehicle.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateVehicleRequestItem
impl CreateVehicleRequestItem
sourcepub fn builder() -> CreateVehicleRequestItemBuilder
pub fn builder() -> CreateVehicleRequestItemBuilder
Creates a new builder-style object to manufacture CreateVehicleRequestItem
.
Trait Implementations§
source§impl Clone for CreateVehicleRequestItem
impl Clone for CreateVehicleRequestItem
source§fn clone(&self) -> CreateVehicleRequestItem
fn clone(&self) -> CreateVehicleRequestItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateVehicleRequestItem
impl Debug for CreateVehicleRequestItem
source§impl PartialEq for CreateVehicleRequestItem
impl PartialEq for CreateVehicleRequestItem
source§fn eq(&self, other: &CreateVehicleRequestItem) -> bool
fn eq(&self, other: &CreateVehicleRequestItem) -> bool
self
and other
values to be equal, and is used
by ==
.