Struct aws_sdk_iot::types::builders::HttpContextBuilder
source · #[non_exhaustive]pub struct HttpContextBuilder { /* private fields */ }
Expand description
A builder for HttpContext
.
Implementations§
source§impl HttpContextBuilder
impl HttpContextBuilder
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 get_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_headers(&self) -> &Option<HashMap<String, String>>
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 get_query_string(&self) -> &Option<String>
pub fn get_query_string(&self) -> &Option<String>
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
.
Trait Implementations§
source§impl Clone for HttpContextBuilder
impl Clone for HttpContextBuilder
source§fn clone(&self) -> HttpContextBuilder
fn clone(&self) -> HttpContextBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HttpContextBuilder
impl Debug for HttpContextBuilder
source§impl Default for HttpContextBuilder
impl Default for HttpContextBuilder
source§fn default() -> HttpContextBuilder
fn default() -> HttpContextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HttpContextBuilder
impl PartialEq for HttpContextBuilder
source§fn eq(&self, other: &HttpContextBuilder) -> bool
fn eq(&self, other: &HttpContextBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpContextBuilder
Auto Trait Implementations§
impl Freeze for HttpContextBuilder
impl RefUnwindSafe for HttpContextBuilder
impl Send for HttpContextBuilder
impl Sync for HttpContextBuilder
impl Unpin for HttpContextBuilder
impl UnwindSafe for HttpContextBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.