Struct aws_sdk_iottwinmaker::types::builders::DataTypeBuilder
source · #[non_exhaustive]pub struct DataTypeBuilder { /* private fields */ }Expand description
A builder for DataType.
Implementations§
source§impl DataTypeBuilder
impl DataTypeBuilder
sourcepub fn type(self, input: Type) -> Self
pub fn type(self, input: Type) -> Self
The underlying type of the data type.
This field is required.sourcepub fn nested_type(self, input: impl Into<Box<DataType>>) -> Self
pub fn nested_type(self, input: impl Into<Box<DataType>>) -> Self
The nested type in the data type.
sourcepub fn set_nested_type(self, input: Option<Box<DataType>>) -> Self
pub fn set_nested_type(self, input: Option<Box<DataType>>) -> Self
The nested type in the data type.
sourcepub fn get_nested_type(&self) -> &Option<Box<DataType>>
pub fn get_nested_type(&self) -> &Option<Box<DataType>>
The nested type in the data type.
sourcepub fn allowed_values(self, input: DataValue) -> Self
pub fn allowed_values(self, input: DataValue) -> Self
Appends an item to allowed_values.
To override the contents of this collection use set_allowed_values.
The allowed values for this data type.
sourcepub fn set_allowed_values(self, input: Option<Vec<DataValue>>) -> Self
pub fn set_allowed_values(self, input: Option<Vec<DataValue>>) -> Self
The allowed values for this data type.
sourcepub fn get_allowed_values(&self) -> &Option<Vec<DataValue>>
pub fn get_allowed_values(&self) -> &Option<Vec<DataValue>>
The allowed values for this data type.
sourcepub fn unit_of_measure(self, input: impl Into<String>) -> Self
pub fn unit_of_measure(self, input: impl Into<String>) -> Self
The unit of measure used in this data type.
sourcepub fn set_unit_of_measure(self, input: Option<String>) -> Self
pub fn set_unit_of_measure(self, input: Option<String>) -> Self
The unit of measure used in this data type.
sourcepub fn get_unit_of_measure(&self) -> &Option<String>
pub fn get_unit_of_measure(&self) -> &Option<String>
The unit of measure used in this data type.
sourcepub fn relationship(self, input: Relationship) -> Self
pub fn relationship(self, input: Relationship) -> Self
A relationship that associates a component with another component.
sourcepub fn set_relationship(self, input: Option<Relationship>) -> Self
pub fn set_relationship(self, input: Option<Relationship>) -> Self
A relationship that associates a component with another component.
sourcepub fn get_relationship(&self) -> &Option<Relationship>
pub fn get_relationship(&self) -> &Option<Relationship>
A relationship that associates a component with another component.
Trait Implementations§
source§impl Clone for DataTypeBuilder
impl Clone for DataTypeBuilder
source§fn clone(&self) -> DataTypeBuilder
fn clone(&self) -> DataTypeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DataTypeBuilder
impl Debug for DataTypeBuilder
source§impl Default for DataTypeBuilder
impl Default for DataTypeBuilder
source§fn default() -> DataTypeBuilder
fn default() -> DataTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DataTypeBuilder
impl PartialEq for DataTypeBuilder
impl StructuralPartialEq for DataTypeBuilder
Auto Trait Implementations§
impl Freeze for DataTypeBuilder
impl RefUnwindSafe for DataTypeBuilder
impl Send for DataTypeBuilder
impl Sync for DataTypeBuilder
impl Unpin for DataTypeBuilder
impl UnwindSafe for DataTypeBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.