Struct aws_sdk_iotfleetwise::types::builders::MessageSignalBuilder
source · #[non_exhaustive]pub struct MessageSignalBuilder { /* private fields */ }Expand description
A builder for MessageSignal.
Implementations§
source§impl MessageSignalBuilder
impl MessageSignalBuilder
sourcepub fn topic_name(self, input: impl Into<String>) -> Self
pub fn topic_name(self, input: impl Into<String>) -> Self
The topic name for the message signal. It corresponds to topics in ROS 2.
This field is required.sourcepub fn set_topic_name(self, input: Option<String>) -> Self
pub fn set_topic_name(self, input: Option<String>) -> Self
The topic name for the message signal. It corresponds to topics in ROS 2.
sourcepub fn get_topic_name(&self) -> &Option<String>
pub fn get_topic_name(&self) -> &Option<String>
The topic name for the message signal. It corresponds to topics in ROS 2.
sourcepub fn structured_message(self, input: StructuredMessage) -> Self
pub fn structured_message(self, input: StructuredMessage) -> Self
The structured message for the message signal. It can be defined with either a primitiveMessageDefinition, structuredMessageListDefinition, or structuredMessageDefinition recursively.
sourcepub fn set_structured_message(self, input: Option<StructuredMessage>) -> Self
pub fn set_structured_message(self, input: Option<StructuredMessage>) -> Self
The structured message for the message signal. It can be defined with either a primitiveMessageDefinition, structuredMessageListDefinition, or structuredMessageDefinition recursively.
sourcepub fn get_structured_message(&self) -> &Option<StructuredMessage>
pub fn get_structured_message(&self) -> &Option<StructuredMessage>
The structured message for the message signal. It can be defined with either a primitiveMessageDefinition, structuredMessageListDefinition, or structuredMessageDefinition recursively.
sourcepub fn build(self) -> Result<MessageSignal, BuildError>
pub fn build(self) -> Result<MessageSignal, BuildError>
Consumes the builder and constructs a MessageSignal.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MessageSignalBuilder
impl Clone for MessageSignalBuilder
source§fn clone(&self) -> MessageSignalBuilder
fn clone(&self) -> MessageSignalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MessageSignalBuilder
impl Debug for MessageSignalBuilder
source§impl Default for MessageSignalBuilder
impl Default for MessageSignalBuilder
source§fn default() -> MessageSignalBuilder
fn default() -> MessageSignalBuilder
source§impl PartialEq for MessageSignalBuilder
impl PartialEq for MessageSignalBuilder
source§fn eq(&self, other: &MessageSignalBuilder) -> bool
fn eq(&self, other: &MessageSignalBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MessageSignalBuilder
Auto Trait Implementations§
impl Freeze for MessageSignalBuilder
impl RefUnwindSafe for MessageSignalBuilder
impl Send for MessageSignalBuilder
impl Sync for MessageSignalBuilder
impl Unpin for MessageSignalBuilder
impl UnwindSafe for MessageSignalBuilder
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