Struct aws_sdk_wafv2::types::builders::CustomHttpHeaderBuilder
source · #[non_exhaustive]pub struct CustomHttpHeaderBuilder { /* private fields */ }Expand description
A builder for CustomHttpHeader.
Implementations§
source§impl CustomHttpHeaderBuilder
impl CustomHttpHeaderBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value of the custom header.
This field is required.sourcepub fn build(self) -> Result<CustomHttpHeader, BuildError>
pub fn build(self) -> Result<CustomHttpHeader, BuildError>
Consumes the builder and constructs a CustomHttpHeader.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomHttpHeaderBuilder
impl Clone for CustomHttpHeaderBuilder
source§fn clone(&self) -> CustomHttpHeaderBuilder
fn clone(&self) -> CustomHttpHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomHttpHeaderBuilder
impl Debug for CustomHttpHeaderBuilder
source§impl Default for CustomHttpHeaderBuilder
impl Default for CustomHttpHeaderBuilder
source§fn default() -> CustomHttpHeaderBuilder
fn default() -> CustomHttpHeaderBuilder
source§impl PartialEq for CustomHttpHeaderBuilder
impl PartialEq for CustomHttpHeaderBuilder
impl StructuralPartialEq for CustomHttpHeaderBuilder
Auto Trait Implementations§
impl Freeze for CustomHttpHeaderBuilder
impl RefUnwindSafe for CustomHttpHeaderBuilder
impl Send for CustomHttpHeaderBuilder
impl Sync for CustomHttpHeaderBuilder
impl Unpin for CustomHttpHeaderBuilder
impl UnwindSafe for CustomHttpHeaderBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more