#[non_exhaustive]pub struct AssetModelCompositeModelBuilder { /* private fields */ }Expand description
A builder for AssetModelCompositeModel.
Implementations§
source§impl AssetModelCompositeModelBuilder
impl AssetModelCompositeModelBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the composite model.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the composite model.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the composite model.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the composite model.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of the composite model. For alarm composite models, this type is AWS/ALARM.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of the composite model. For alarm composite models, this type is AWS/ALARM.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of the composite model. For alarm composite models, this type is AWS/ALARM.
sourcepub fn properties(self, input: AssetModelProperty) -> Self
pub fn properties(self, input: AssetModelProperty) -> Self
Appends an item to properties.
To override the contents of this collection use set_properties.
The asset property definitions for this composite model.
sourcepub fn set_properties(self, input: Option<Vec<AssetModelProperty>>) -> Self
pub fn set_properties(self, input: Option<Vec<AssetModelProperty>>) -> Self
The asset property definitions for this composite model.
sourcepub fn get_properties(&self) -> &Option<Vec<AssetModelProperty>>
pub fn get_properties(&self) -> &Option<Vec<AssetModelProperty>>
The asset property definitions for this composite model.
sourcepub fn external_id(self, input: impl Into<String>) -> Self
pub fn external_id(self, input: impl Into<String>) -> Self
The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn set_external_id(self, input: Option<String>) -> Self
pub fn set_external_id(self, input: Option<String>) -> Self
The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn get_external_id(&self) -> &Option<String>
pub fn get_external_id(&self) -> &Option<String>
The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn build(self) -> Result<AssetModelCompositeModel, BuildError>
pub fn build(self) -> Result<AssetModelCompositeModel, BuildError>
Consumes the builder and constructs a AssetModelCompositeModel.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssetModelCompositeModelBuilder
impl Clone for AssetModelCompositeModelBuilder
source§fn clone(&self) -> AssetModelCompositeModelBuilder
fn clone(&self) -> AssetModelCompositeModelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssetModelCompositeModelBuilder
impl Default for AssetModelCompositeModelBuilder
source§fn default() -> AssetModelCompositeModelBuilder
fn default() -> AssetModelCompositeModelBuilder
source§impl PartialEq for AssetModelCompositeModelBuilder
impl PartialEq for AssetModelCompositeModelBuilder
source§fn eq(&self, other: &AssetModelCompositeModelBuilder) -> bool
fn eq(&self, other: &AssetModelCompositeModelBuilder) -> bool
self and other values to be equal, and is used
by ==.