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 ==
.