Struct aws_sdk_wafv2::types::builders::CustomRequestHandlingBuilder
source · #[non_exhaustive]pub struct CustomRequestHandlingBuilder { /* private fields */ }
Expand description
A builder for CustomRequestHandling
.
Implementations§
source§impl CustomRequestHandlingBuilder
impl CustomRequestHandlingBuilder
sourcepub fn insert_headers(self, input: CustomHttpHeader) -> Self
pub fn insert_headers(self, input: CustomHttpHeader) -> Self
Appends an item to insert_headers
.
To override the contents of this collection use set_insert_headers
.
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
sourcepub fn set_insert_headers(self, input: Option<Vec<CustomHttpHeader>>) -> Self
pub fn set_insert_headers(self, input: Option<Vec<CustomHttpHeader>>) -> Self
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
sourcepub fn get_insert_headers(&self) -> &Option<Vec<CustomHttpHeader>>
pub fn get_insert_headers(&self) -> &Option<Vec<CustomHttpHeader>>
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
sourcepub fn build(self) -> Result<CustomRequestHandling, BuildError>
pub fn build(self) -> Result<CustomRequestHandling, BuildError>
Consumes the builder and constructs a CustomRequestHandling
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomRequestHandlingBuilder
impl Clone for CustomRequestHandlingBuilder
source§fn clone(&self) -> CustomRequestHandlingBuilder
fn clone(&self) -> CustomRequestHandlingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomRequestHandlingBuilder
impl Debug for CustomRequestHandlingBuilder
source§impl Default for CustomRequestHandlingBuilder
impl Default for CustomRequestHandlingBuilder
source§fn default() -> CustomRequestHandlingBuilder
fn default() -> CustomRequestHandlingBuilder
source§impl PartialEq for CustomRequestHandlingBuilder
impl PartialEq for CustomRequestHandlingBuilder
source§fn eq(&self, other: &CustomRequestHandlingBuilder) -> bool
fn eq(&self, other: &CustomRequestHandlingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomRequestHandlingBuilder
Auto Trait Implementations§
impl Freeze for CustomRequestHandlingBuilder
impl RefUnwindSafe for CustomRequestHandlingBuilder
impl Send for CustomRequestHandlingBuilder
impl Sync for CustomRequestHandlingBuilder
impl Unpin for CustomRequestHandlingBuilder
impl UnwindSafe for CustomRequestHandlingBuilder
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> 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