Struct aws_sdk_iot::types::builders::OtaUpdateFileBuilder
source · #[non_exhaustive]pub struct OtaUpdateFileBuilder { /* private fields */ }
Expand description
A builder for OtaUpdateFile
.
Implementations§
source§impl OtaUpdateFileBuilder
impl OtaUpdateFileBuilder
sourcepub fn set_file_name(self, input: Option<String>) -> Self
pub fn set_file_name(self, input: Option<String>) -> Self
The name of the file.
sourcepub fn get_file_name(&self) -> &Option<String>
pub fn get_file_name(&self) -> &Option<String>
The name of the file.
sourcepub fn file_type(self, input: i32) -> Self
pub fn file_type(self, input: i32) -> Self
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
sourcepub fn set_file_type(self, input: Option<i32>) -> Self
pub fn set_file_type(self, input: Option<i32>) -> Self
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
sourcepub fn get_file_type(&self) -> &Option<i32>
pub fn get_file_type(&self) -> &Option<i32>
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
sourcepub fn file_version(self, input: impl Into<String>) -> Self
pub fn file_version(self, input: impl Into<String>) -> Self
The file version.
sourcepub fn set_file_version(self, input: Option<String>) -> Self
pub fn set_file_version(self, input: Option<String>) -> Self
The file version.
sourcepub fn get_file_version(&self) -> &Option<String>
pub fn get_file_version(&self) -> &Option<String>
The file version.
sourcepub fn file_location(self, input: FileLocation) -> Self
pub fn file_location(self, input: FileLocation) -> Self
The location of the updated firmware.
sourcepub fn set_file_location(self, input: Option<FileLocation>) -> Self
pub fn set_file_location(self, input: Option<FileLocation>) -> Self
The location of the updated firmware.
sourcepub fn get_file_location(&self) -> &Option<FileLocation>
pub fn get_file_location(&self) -> &Option<FileLocation>
The location of the updated firmware.
sourcepub fn code_signing(self, input: CodeSigning) -> Self
pub fn code_signing(self, input: CodeSigning) -> Self
The code signing method of the file.
sourcepub fn set_code_signing(self, input: Option<CodeSigning>) -> Self
pub fn set_code_signing(self, input: Option<CodeSigning>) -> Self
The code signing method of the file.
sourcepub fn get_code_signing(&self) -> &Option<CodeSigning>
pub fn get_code_signing(&self) -> &Option<CodeSigning>
The code signing method of the file.
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
.
A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
sourcepub fn build(self) -> OtaUpdateFile
pub fn build(self) -> OtaUpdateFile
Consumes the builder and constructs a OtaUpdateFile
.
Trait Implementations§
source§impl Clone for OtaUpdateFileBuilder
impl Clone for OtaUpdateFileBuilder
source§fn clone(&self) -> OtaUpdateFileBuilder
fn clone(&self) -> OtaUpdateFileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OtaUpdateFileBuilder
impl Debug for OtaUpdateFileBuilder
source§impl Default for OtaUpdateFileBuilder
impl Default for OtaUpdateFileBuilder
source§fn default() -> OtaUpdateFileBuilder
fn default() -> OtaUpdateFileBuilder
source§impl PartialEq for OtaUpdateFileBuilder
impl PartialEq for OtaUpdateFileBuilder
source§fn eq(&self, other: &OtaUpdateFileBuilder) -> bool
fn eq(&self, other: &OtaUpdateFileBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OtaUpdateFileBuilder
Auto Trait Implementations§
impl Freeze for OtaUpdateFileBuilder
impl RefUnwindSafe for OtaUpdateFileBuilder
impl Send for OtaUpdateFileBuilder
impl Sync for OtaUpdateFileBuilder
impl Unpin for OtaUpdateFileBuilder
impl UnwindSafe for OtaUpdateFileBuilder
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> 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