#[non_exhaustive]pub struct CreateAssetOutputBuilder { /* private fields */ }Expand description
A builder for CreateAssetOutput.
Implementations§
source§impl CreateAssetOutputBuilder
impl CreateAssetOutputBuilder
sourcepub fn asset_id(self, input: impl Into<String>) -> Self
pub fn asset_id(self, input: impl Into<String>) -> Self
The ID of the asset, in UUID format. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise API operations.
This field is required.sourcepub fn set_asset_id(self, input: Option<String>) -> Self
pub fn set_asset_id(self, input: Option<String>) -> Self
The ID of the asset, in UUID format. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise API operations.
sourcepub fn get_asset_id(&self) -> &Option<String>
pub fn get_asset_id(&self) -> &Option<String>
The ID of the asset, in UUID format. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise API operations.
sourcepub fn asset_arn(self, input: impl Into<String>) -> Self
pub fn asset_arn(self, input: impl Into<String>) -> Self
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
sourcepub fn set_asset_arn(self, input: Option<String>) -> Self
pub fn set_asset_arn(self, input: Option<String>) -> Self
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
sourcepub fn get_asset_arn(&self) -> &Option<String>
pub fn get_asset_arn(&self) -> &Option<String>
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
sourcepub fn asset_status(self, input: AssetStatus) -> Self
pub fn asset_status(self, input: AssetStatus) -> Self
The status of the asset, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn set_asset_status(self, input: Option<AssetStatus>) -> Self
pub fn set_asset_status(self, input: Option<AssetStatus>) -> Self
The status of the asset, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn get_asset_status(&self) -> &Option<AssetStatus>
pub fn get_asset_status(&self) -> &Option<AssetStatus>
The status of the asset, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn build(self) -> Result<CreateAssetOutput, BuildError>
pub fn build(self) -> Result<CreateAssetOutput, BuildError>
Consumes the builder and constructs a CreateAssetOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateAssetOutputBuilder
impl Clone for CreateAssetOutputBuilder
source§fn clone(&self) -> CreateAssetOutputBuilder
fn clone(&self) -> CreateAssetOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateAssetOutputBuilder
impl Debug for CreateAssetOutputBuilder
source§impl Default for CreateAssetOutputBuilder
impl Default for CreateAssetOutputBuilder
source§fn default() -> CreateAssetOutputBuilder
fn default() -> CreateAssetOutputBuilder
source§impl PartialEq for CreateAssetOutputBuilder
impl PartialEq for CreateAssetOutputBuilder
source§fn eq(&self, other: &CreateAssetOutputBuilder) -> bool
fn eq(&self, other: &CreateAssetOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateAssetOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateAssetOutputBuilder
impl RefUnwindSafe for CreateAssetOutputBuilder
impl Send for CreateAssetOutputBuilder
impl Sync for CreateAssetOutputBuilder
impl Unpin for CreateAssetOutputBuilder
impl UnwindSafe for CreateAssetOutputBuilder
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