#[non_exhaustive]pub struct CreateVehicleInputBuilder { /* private fields */ }Expand description
A builder for CreateVehicleInput.
Implementations§
source§impl CreateVehicleInputBuilder
impl CreateVehicleInputBuilder
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.
sourcepub fn build(self) -> Result<CreateVehicleInput, BuildError>
pub fn build(self) -> Result<CreateVehicleInput, BuildError>
Consumes the builder and constructs a CreateVehicleInput.
Trait Implementations§
source§impl Clone for CreateVehicleInputBuilder
impl Clone for CreateVehicleInputBuilder
source§fn clone(&self) -> CreateVehicleInputBuilder
fn clone(&self) -> CreateVehicleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateVehicleInputBuilder
impl Debug for CreateVehicleInputBuilder
source§impl Default for CreateVehicleInputBuilder
impl Default for CreateVehicleInputBuilder
source§fn default() -> CreateVehicleInputBuilder
fn default() -> CreateVehicleInputBuilder
source§impl PartialEq<CreateVehicleInputBuilder> for CreateVehicleInputBuilder
impl PartialEq<CreateVehicleInputBuilder> for CreateVehicleInputBuilder
source§fn eq(&self, other: &CreateVehicleInputBuilder) -> bool
fn eq(&self, other: &CreateVehicleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.