#[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.
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 Amazon Resource Name ARN of a vehicle model.
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 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.
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 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.
sourcepub fn build(self) -> Result<CreateVehicleInput, BuildError>
pub fn build(self) -> Result<CreateVehicleInput, BuildError>
Consumes the builder and constructs a CreateVehicleInput.
source§impl CreateVehicleInputBuilder
impl CreateVehicleInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateVehicleOutput, SdkError<CreateVehicleError, HttpResponse>>
Sends a request with this input using the given client.
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 for CreateVehicleInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for CreateVehicleInputBuilder
Auto Trait Implementations§
impl Freeze for CreateVehicleInputBuilder
impl RefUnwindSafe for CreateVehicleInputBuilder
impl Send for CreateVehicleInputBuilder
impl Sync for CreateVehicleInputBuilder
impl Unpin for CreateVehicleInputBuilder
impl UnwindSafe for CreateVehicleInputBuilder
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