Struct aws_sdk_iotsitewise::types::builders::AssetStatusBuilder
source · #[non_exhaustive]pub struct AssetStatusBuilder { /* private fields */ }Expand description
A builder for AssetStatus.
Implementations§
source§impl AssetStatusBuilder
impl AssetStatusBuilder
sourcepub fn state(self, input: AssetState) -> Self
pub fn state(self, input: AssetState) -> Self
The current status of the asset.
This field is required.sourcepub fn set_state(self, input: Option<AssetState>) -> Self
pub fn set_state(self, input: Option<AssetState>) -> Self
The current status of the asset.
sourcepub fn get_state(&self) -> &Option<AssetState>
pub fn get_state(&self) -> &Option<AssetState>
The current status of the asset.
sourcepub fn error(self, input: ErrorDetails) -> Self
pub fn error(self, input: ErrorDetails) -> Self
Contains associated error information, if any.
sourcepub fn set_error(self, input: Option<ErrorDetails>) -> Self
pub fn set_error(self, input: Option<ErrorDetails>) -> Self
Contains associated error information, if any.
sourcepub fn get_error(&self) -> &Option<ErrorDetails>
pub fn get_error(&self) -> &Option<ErrorDetails>
Contains associated error information, if any.
sourcepub fn build(self) -> Result<AssetStatus, BuildError>
pub fn build(self) -> Result<AssetStatus, BuildError>
Consumes the builder and constructs a AssetStatus.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssetStatusBuilder
impl Clone for AssetStatusBuilder
source§fn clone(&self) -> AssetStatusBuilder
fn clone(&self) -> AssetStatusBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AssetStatusBuilder
impl Debug for AssetStatusBuilder
source§impl Default for AssetStatusBuilder
impl Default for AssetStatusBuilder
source§fn default() -> AssetStatusBuilder
fn default() -> AssetStatusBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AssetStatusBuilder
impl PartialEq for AssetStatusBuilder
source§fn eq(&self, other: &AssetStatusBuilder) -> bool
fn eq(&self, other: &AssetStatusBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetStatusBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AssetStatusBuilder
impl Send for AssetStatusBuilder
impl Sync for AssetStatusBuilder
impl Unpin for AssetStatusBuilder
impl UnwindSafe for AssetStatusBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.