Struct aws_sdk_iotsitewise::operation::create_asset_model::builders::CreateAssetModelOutputBuilder
source · #[non_exhaustive]pub struct CreateAssetModelOutputBuilder { /* private fields */ }Expand description
A builder for CreateAssetModelOutput.
Implementations§
source§impl CreateAssetModelOutputBuilder
impl CreateAssetModelOutputBuilder
sourcepub fn asset_model_id(self, input: impl Into<String>) -> Self
pub fn asset_model_id(self, input: impl Into<String>) -> Self
The ID of the asset model, in UUID format. You can use this ID when you call other IoT SiteWise API operations.
This field is required.sourcepub fn set_asset_model_id(self, input: Option<String>) -> Self
pub fn set_asset_model_id(self, input: Option<String>) -> Self
The ID of the asset model, in UUID format. You can use this ID when you call other IoT SiteWise API operations.
sourcepub fn get_asset_model_id(&self) -> &Option<String>
pub fn get_asset_model_id(&self) -> &Option<String>
The ID of the asset model, in UUID format. You can use this ID when you call other IoT SiteWise API operations.
sourcepub fn asset_model_arn(self, input: impl Into<String>) -> Self
pub fn asset_model_arn(self, input: impl Into<String>) -> Self
The ARN of the asset model, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}
sourcepub fn set_asset_model_arn(self, input: Option<String>) -> Self
pub fn set_asset_model_arn(self, input: Option<String>) -> Self
The ARN of the asset model, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}
sourcepub fn get_asset_model_arn(&self) -> &Option<String>
pub fn get_asset_model_arn(&self) -> &Option<String>
The ARN of the asset model, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}
sourcepub fn asset_model_status(self, input: AssetModelStatus) -> Self
pub fn asset_model_status(self, input: AssetModelStatus) -> Self
The status of the asset model, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn set_asset_model_status(self, input: Option<AssetModelStatus>) -> Self
pub fn set_asset_model_status(self, input: Option<AssetModelStatus>) -> Self
The status of the asset model, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn get_asset_model_status(&self) -> &Option<AssetModelStatus>
pub fn get_asset_model_status(&self) -> &Option<AssetModelStatus>
The status of the asset model, which contains a state (CREATING after successfully calling this operation) and any error message.
sourcepub fn build(self) -> Result<CreateAssetModelOutput, BuildError>
pub fn build(self) -> Result<CreateAssetModelOutput, BuildError>
Consumes the builder and constructs a CreateAssetModelOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateAssetModelOutputBuilder
impl Clone for CreateAssetModelOutputBuilder
source§fn clone(&self) -> CreateAssetModelOutputBuilder
fn clone(&self) -> CreateAssetModelOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateAssetModelOutputBuilder
impl Default for CreateAssetModelOutputBuilder
source§fn default() -> CreateAssetModelOutputBuilder
fn default() -> CreateAssetModelOutputBuilder
source§impl PartialEq for CreateAssetModelOutputBuilder
impl PartialEq for CreateAssetModelOutputBuilder
source§fn eq(&self, other: &CreateAssetModelOutputBuilder) -> bool
fn eq(&self, other: &CreateAssetModelOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.