#[non_exhaustive]pub struct CreateVehicleRequestItemBuilder { /* private fields */ }
Expand description
A builder for CreateVehicleRequestItem
.
Implementations§
source§impl CreateVehicleRequestItemBuilder
impl CreateVehicleRequestItemBuilder
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.
This field is required.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 ARN of the vehicle model (model manifest) to create the vehicle from.
This field is required.sourcepub fn set_model_manifest_arn(self, input: Option<String>) -> Self
pub fn set_model_manifest_arn(self, input: Option<String>) -> Self
The ARN of the vehicle model (model manifest) to create the vehicle from.
sourcepub fn get_model_manifest_arn(&self) -> &Option<String>
pub fn get_model_manifest_arn(&self) -> &Option<String>
The ARN of the vehicle model (model manifest) to create the vehicle from.
sourcepub fn decoder_manifest_arn(self, input: impl Into<String>) -> Self
pub fn decoder_manifest_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
This field is required.sourcepub fn set_decoder_manifest_arn(self, input: Option<String>) -> Self
pub fn set_decoder_manifest_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
sourcepub fn get_decoder_manifest_arn(&self) -> &Option<String>
pub fn get_decoder_manifest_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
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: "engine Type"
: "v6"
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: "engine Type"
: "v6"
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: "engine Type"
: "v6"
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 thing as a vehicle.
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 thing as a vehicle.
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 thing as a vehicle.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata which can be used to manage the vehicle.
Metadata which can be used to manage the vehicle.
Metadata which can be used to manage the vehicle.
sourcepub fn build(self) -> Result<CreateVehicleRequestItem, BuildError>
pub fn build(self) -> Result<CreateVehicleRequestItem, BuildError>
Consumes the builder and constructs a CreateVehicleRequestItem
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateVehicleRequestItemBuilder
impl Clone for CreateVehicleRequestItemBuilder
source§fn clone(&self) -> CreateVehicleRequestItemBuilder
fn clone(&self) -> CreateVehicleRequestItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateVehicleRequestItemBuilder
impl Default for CreateVehicleRequestItemBuilder
source§fn default() -> CreateVehicleRequestItemBuilder
fn default() -> CreateVehicleRequestItemBuilder
source§impl PartialEq for CreateVehicleRequestItemBuilder
impl PartialEq for CreateVehicleRequestItemBuilder
source§fn eq(&self, other: &CreateVehicleRequestItemBuilder) -> bool
fn eq(&self, other: &CreateVehicleRequestItemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.