Struct aws_sdk_iotfleetwise::types::builders::VehicleSummaryBuilder
source · #[non_exhaustive]pub struct VehicleSummaryBuilder { /* private fields */ }Expand description
A builder for VehicleSummary.
Implementations§
source§impl VehicleSummaryBuilder
impl VehicleSummaryBuilder
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.
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.
sourcepub fn get_vehicle_name(&self) -> &Option<String>
pub fn get_vehicle_name(&self) -> &Option<String>
The unique ID of the vehicle.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the vehicle.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the vehicle.
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 a vehicle model (model manifest) associated with the vehicle.
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 a vehicle model (model manifest) associated with the vehicle.
sourcepub fn get_model_manifest_arn(&self) -> &Option<String>
pub fn get_model_manifest_arn(&self) -> &Option<String>
The ARN of a vehicle model (model manifest) associated with the vehicle.
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 associated with the vehicle.
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 associated with the vehicle.
sourcepub fn get_decoder_manifest_arn(&self) -> &Option<String>
pub fn get_decoder_manifest_arn(&self) -> &Option<String>
The ARN of a decoder manifest associated with the vehicle.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).
This field is required.sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn last_modification_time(self, input: DateTime) -> Self
pub fn last_modification_time(self, input: DateTime) -> Self
The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).
This field is required.sourcepub fn set_last_modification_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modification_time(self, input: Option<DateTime>) -> Self
The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn get_last_modification_time(&self) -> &Option<DateTime>
pub fn get_last_modification_time(&self) -> &Option<DateTime>
The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).
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 build(self) -> Result<VehicleSummary, BuildError>
pub fn build(self) -> Result<VehicleSummary, BuildError>
Consumes the builder and constructs a VehicleSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VehicleSummaryBuilder
impl Clone for VehicleSummaryBuilder
source§fn clone(&self) -> VehicleSummaryBuilder
fn clone(&self) -> VehicleSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VehicleSummaryBuilder
impl Debug for VehicleSummaryBuilder
source§impl Default for VehicleSummaryBuilder
impl Default for VehicleSummaryBuilder
source§fn default() -> VehicleSummaryBuilder
fn default() -> VehicleSummaryBuilder
source§impl PartialEq for VehicleSummaryBuilder
impl PartialEq for VehicleSummaryBuilder
source§fn eq(&self, other: &VehicleSummaryBuilder) -> bool
fn eq(&self, other: &VehicleSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VehicleSummaryBuilder
Auto Trait Implementations§
impl Freeze for VehicleSummaryBuilder
impl RefUnwindSafe for VehicleSummaryBuilder
impl Send for VehicleSummaryBuilder
impl Sync for VehicleSummaryBuilder
impl Unpin for VehicleSummaryBuilder
impl UnwindSafe for VehicleSummaryBuilder
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