Struct aws_sdk_iot::types::builders::HttpActionBuilder
source · #[non_exhaustive]pub struct HttpActionBuilder { /* private fields */ }
Expand description
A builder for HttpAction
.
Implementations§
source§impl HttpActionBuilder
impl HttpActionBuilder
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if possible.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if possible.
sourcepub fn get_url(&self) -> &Option<String>
pub fn get_url(&self) -> &Option<String>
The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if possible.
sourcepub fn confirmation_url(self, input: impl Into<String>) -> Self
pub fn confirmation_url(self, input: impl Into<String>) -> Self
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
sourcepub fn set_confirmation_url(self, input: Option<String>) -> Self
pub fn set_confirmation_url(self, input: Option<String>) -> Self
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
sourcepub fn get_confirmation_url(&self) -> &Option<String>
pub fn get_confirmation_url(&self) -> &Option<String>
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
sourcepub fn headers(self, input: HttpActionHeader) -> Self
pub fn headers(self, input: HttpActionHeader) -> Self
Appends an item to headers
.
To override the contents of this collection use set_headers
.
The HTTP headers to send with the message data.
sourcepub fn set_headers(self, input: Option<Vec<HttpActionHeader>>) -> Self
pub fn set_headers(self, input: Option<Vec<HttpActionHeader>>) -> Self
The HTTP headers to send with the message data.
sourcepub fn get_headers(&self) -> &Option<Vec<HttpActionHeader>>
pub fn get_headers(&self) -> &Option<Vec<HttpActionHeader>>
The HTTP headers to send with the message data.
sourcepub fn auth(self, input: HttpAuthorization) -> Self
pub fn auth(self, input: HttpAuthorization) -> Self
The authentication method to use when sending data to an HTTPS endpoint.
sourcepub fn set_auth(self, input: Option<HttpAuthorization>) -> Self
pub fn set_auth(self, input: Option<HttpAuthorization>) -> Self
The authentication method to use when sending data to an HTTPS endpoint.
sourcepub fn get_auth(&self) -> &Option<HttpAuthorization>
pub fn get_auth(&self) -> &Option<HttpAuthorization>
The authentication method to use when sending data to an HTTPS endpoint.
sourcepub fn build(self) -> Result<HttpAction, BuildError>
pub fn build(self) -> Result<HttpAction, BuildError>
Consumes the builder and constructs a HttpAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HttpActionBuilder
impl Clone for HttpActionBuilder
source§fn clone(&self) -> HttpActionBuilder
fn clone(&self) -> HttpActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HttpActionBuilder
impl Debug for HttpActionBuilder
source§impl Default for HttpActionBuilder
impl Default for HttpActionBuilder
source§fn default() -> HttpActionBuilder
fn default() -> HttpActionBuilder
source§impl PartialEq for HttpActionBuilder
impl PartialEq for HttpActionBuilder
source§fn eq(&self, other: &HttpActionBuilder) -> bool
fn eq(&self, other: &HttpActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.