#[non_exhaustive]pub struct UpdateVehicleRequestItemBuilder { /* private fields */ }Expand description
A builder for UpdateVehicleRequestItem.
Implementations§
source§impl UpdateVehicleRequestItemBuilder
impl UpdateVehicleRequestItemBuilder
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 update.
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 update.
sourcepub fn get_vehicle_name(&self) -> &Option<String>
pub fn get_vehicle_name(&self) -> &Option<String>
The unique ID of the vehicle to update.
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) associated with the vehicle to update.
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) associated with the vehicle to update.
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) associated with the vehicle to update.
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 the signal decoder manifest associated with the vehicle to update.
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 the signal decoder manifest associated with the vehicle to update.
sourcepub fn get_decoder_manifest_arn(&self) -> &Option<String>
pub fn get_decoder_manifest_arn(&self) -> &Option<String>
The ARN of the signal decoder manifest associated with the vehicle to update.
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 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"
sourcepub fn attribute_update_mode(self, input: UpdateMode) -> Self
pub fn attribute_update_mode(self, input: UpdateMode) -> Self
The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.
This is required if attributes are present in the input.
sourcepub fn set_attribute_update_mode(self, input: Option<UpdateMode>) -> Self
pub fn set_attribute_update_mode(self, input: Option<UpdateMode>) -> Self
The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.
This is required if attributes are present in the input.
sourcepub fn get_attribute_update_mode(&self) -> &Option<UpdateMode>
pub fn get_attribute_update_mode(&self) -> &Option<UpdateMode>
The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.
This is required if attributes are present in the input.
sourcepub fn build(self) -> Result<UpdateVehicleRequestItem, BuildError>
pub fn build(self) -> Result<UpdateVehicleRequestItem, BuildError>
Consumes the builder and constructs a UpdateVehicleRequestItem.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateVehicleRequestItemBuilder
impl Clone for UpdateVehicleRequestItemBuilder
source§fn clone(&self) -> UpdateVehicleRequestItemBuilder
fn clone(&self) -> UpdateVehicleRequestItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateVehicleRequestItemBuilder
impl Default for UpdateVehicleRequestItemBuilder
source§fn default() -> UpdateVehicleRequestItemBuilder
fn default() -> UpdateVehicleRequestItemBuilder
source§impl PartialEq for UpdateVehicleRequestItemBuilder
impl PartialEq for UpdateVehicleRequestItemBuilder
source§fn eq(&self, other: &UpdateVehicleRequestItemBuilder) -> bool
fn eq(&self, other: &UpdateVehicleRequestItemBuilder) -> bool
self and other values to be equal, and is used
by ==.