#[non_exhaustive]pub struct AssetModelCompositeModelSummaryBuilder { /* private fields */ }Expand description
A builder for AssetModelCompositeModelSummary.
Implementations§
source§impl AssetModelCompositeModelSummaryBuilder
impl AssetModelCompositeModelSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the the composite model that this summary describes..
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the the composite model that this summary describes..
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the the composite model that this summary describes..
sourcepub fn external_id(self, input: impl Into<String>) -> Self
pub fn external_id(self, input: impl Into<String>) -> Self
The external ID of a composite model on this asset 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 a composite model on this asset 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 a composite model on this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the the composite model that this summary describes..
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the the composite model that this summary describes..
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the the composite model that this summary describes..
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of asset model.
-
ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
-
COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of asset model.
-
ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
-
COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of asset model.
-
ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
-
COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the the composite model that this summary describes..
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the the composite model that this summary describes..
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the the composite model that this summary describes..
sourcepub fn path(self, input: AssetModelCompositeModelPathSegment) -> Self
pub fn path(self, input: AssetModelCompositeModelPathSegment) -> Self
Appends an item to path.
To override the contents of this collection use set_path.
The path that includes all the pieces that make up the composite model.
sourcepub fn set_path(
self,
input: Option<Vec<AssetModelCompositeModelPathSegment>>
) -> Self
pub fn set_path( self, input: Option<Vec<AssetModelCompositeModelPathSegment>> ) -> Self
The path that includes all the pieces that make up the composite model.
sourcepub fn get_path(&self) -> &Option<Vec<AssetModelCompositeModelPathSegment>>
pub fn get_path(&self) -> &Option<Vec<AssetModelCompositeModelPathSegment>>
The path that includes all the pieces that make up the composite model.
sourcepub fn build(self) -> Result<AssetModelCompositeModelSummary, BuildError>
pub fn build(self) -> Result<AssetModelCompositeModelSummary, BuildError>
Consumes the builder and constructs a AssetModelCompositeModelSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssetModelCompositeModelSummaryBuilder
impl Clone for AssetModelCompositeModelSummaryBuilder
source§fn clone(&self) -> AssetModelCompositeModelSummaryBuilder
fn clone(&self) -> AssetModelCompositeModelSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssetModelCompositeModelSummaryBuilder
impl Default for AssetModelCompositeModelSummaryBuilder
source§fn default() -> AssetModelCompositeModelSummaryBuilder
fn default() -> AssetModelCompositeModelSummaryBuilder
source§impl PartialEq for AssetModelCompositeModelSummaryBuilder
impl PartialEq for AssetModelCompositeModelSummaryBuilder
source§fn eq(&self, other: &AssetModelCompositeModelSummaryBuilder) -> bool
fn eq(&self, other: &AssetModelCompositeModelSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetModelCompositeModelSummaryBuilder
Auto Trait Implementations§
impl Freeze for AssetModelCompositeModelSummaryBuilder
impl RefUnwindSafe for AssetModelCompositeModelSummaryBuilder
impl Send for AssetModelCompositeModelSummaryBuilder
impl Sync for AssetModelCompositeModelSummaryBuilder
impl Unpin for AssetModelCompositeModelSummaryBuilder
impl UnwindSafe for AssetModelCompositeModelSummaryBuilder
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