#[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 ==.impl StructuralPartialEq for AssetModelCompositeModelBuilder
Auto Trait Implementations§
impl Freeze for AssetModelCompositeModelBuilder
impl RefUnwindSafe for AssetModelCompositeModelBuilder
impl Send for AssetModelCompositeModelBuilder
impl Sync for AssetModelCompositeModelBuilder
impl Unpin for AssetModelCompositeModelBuilder
impl UnwindSafe for AssetModelCompositeModelBuilder
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