Struct aws_sdk_iot::model::http_context::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HttpContext
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to headers
.
To override the contents of this collection use set_headers
.
The header keys and values in an HTTP authorization request.
sourcepub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
The header keys and values in an HTTP authorization request.
sourcepub fn query_string(self, input: impl Into<String>) -> Self
pub fn query_string(self, input: impl Into<String>) -> Self
The query string keys and values in an HTTP authorization request.
sourcepub fn set_query_string(self, input: Option<String>) -> Self
pub fn set_query_string(self, input: Option<String>) -> Self
The query string keys and values in an HTTP authorization request.
sourcepub fn build(self) -> HttpContext
pub fn build(self) -> HttpContext
Consumes the builder and constructs a HttpContext
.