Struct aws_sdk_iot::types::builders::RepublishActionBuilder
source · #[non_exhaustive]pub struct RepublishActionBuilder { /* private fields */ }
Expand description
A builder for RepublishAction
.
Implementations§
source§impl RepublishActionBuilder
impl RepublishActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that grants access.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that grants access.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that grants access.
sourcepub fn topic(self, input: impl Into<String>) -> Self
pub fn topic(self, input: impl Into<String>) -> Self
The name of the MQTT topic.
This field is required.sourcepub fn qos(self, input: i32) -> Self
pub fn qos(self, input: i32) -> Self
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
sourcepub fn set_qos(self, input: Option<i32>) -> Self
pub fn set_qos(self, input: Option<i32>) -> Self
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
sourcepub fn get_qos(&self) -> &Option<i32>
pub fn get_qos(&self) -> &Option<i32>
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
sourcepub fn headers(self, input: MqttHeaders) -> Self
pub fn headers(self, input: MqttHeaders) -> Self
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
sourcepub fn set_headers(self, input: Option<MqttHeaders>) -> Self
pub fn set_headers(self, input: Option<MqttHeaders>) -> Self
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
sourcepub fn get_headers(&self) -> &Option<MqttHeaders>
pub fn get_headers(&self) -> &Option<MqttHeaders>
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
sourcepub fn build(self) -> Result<RepublishAction, BuildError>
pub fn build(self) -> Result<RepublishAction, BuildError>
Consumes the builder and constructs a RepublishAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RepublishActionBuilder
impl Clone for RepublishActionBuilder
source§fn clone(&self) -> RepublishActionBuilder
fn clone(&self) -> RepublishActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RepublishActionBuilder
impl Debug for RepublishActionBuilder
source§impl Default for RepublishActionBuilder
impl Default for RepublishActionBuilder
source§fn default() -> RepublishActionBuilder
fn default() -> RepublishActionBuilder
source§impl PartialEq for RepublishActionBuilder
impl PartialEq for RepublishActionBuilder
source§fn eq(&self, other: &RepublishActionBuilder) -> bool
fn eq(&self, other: &RepublishActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepublishActionBuilder
Auto Trait Implementations§
impl Freeze for RepublishActionBuilder
impl RefUnwindSafe for RepublishActionBuilder
impl Send for RepublishActionBuilder
impl Sync for RepublishActionBuilder
impl Unpin for RepublishActionBuilder
impl UnwindSafe for RepublishActionBuilder
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