Struct aws_sdk_iot::model::mqtt_context::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for MqttContext
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The value of the username
key in an MQTT authorization request.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The value of the username
key in an MQTT authorization request.
sourcepub fn password(self, input: Blob) -> Self
pub fn password(self, input: Blob) -> Self
The value of the password
key in an MQTT authorization request.
sourcepub fn set_password(self, input: Option<Blob>) -> Self
pub fn set_password(self, input: Option<Blob>) -> Self
The value of the password
key in an MQTT authorization request.
sourcepub fn client_id(self, input: impl Into<String>) -> Self
pub fn client_id(self, input: impl Into<String>) -> Self
The value of the clientId
key in an MQTT authorization request.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
The value of the clientId
key in an MQTT authorization request.
sourcepub fn build(self) -> MqttContext
pub fn build(self) -> MqttContext
Consumes the builder and constructs a MqttContext
.