#[non_exhaustive]pub struct AwsWafv2CustomResponseDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsWafv2CustomResponseDetails
.
Implementations§
source§impl AwsWafv2CustomResponseDetailsBuilder
impl AwsWafv2CustomResponseDetailsBuilder
sourcepub fn custom_response_body_key(self, input: impl Into<String>) -> Self
pub fn custom_response_body_key(self, input: impl Into<String>) -> Self
References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
sourcepub fn set_custom_response_body_key(self, input: Option<String>) -> Self
pub fn set_custom_response_body_key(self, input: Option<String>) -> Self
References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
sourcepub fn get_custom_response_body_key(&self) -> &Option<String>
pub fn get_custom_response_body_key(&self) -> &Option<String>
References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
sourcepub fn response_code(self, input: i32) -> Self
pub fn response_code(self, input: i32) -> Self
The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide.
sourcepub fn set_response_code(self, input: Option<i32>) -> Self
pub fn set_response_code(self, input: Option<i32>) -> Self
The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide.
sourcepub fn get_response_code(&self) -> &Option<i32>
pub fn get_response_code(&self) -> &Option<i32>
The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide.
sourcepub fn response_headers(self, input: AwsWafv2CustomHttpHeader) -> Self
pub fn response_headers(self, input: AwsWafv2CustomHttpHeader) -> Self
Appends an item to response_headers
.
To override the contents of this collection use set_response_headers
.
The HTTP headers to use in the response.
sourcepub fn set_response_headers(
self,
input: Option<Vec<AwsWafv2CustomHttpHeader>>
) -> Self
pub fn set_response_headers( self, input: Option<Vec<AwsWafv2CustomHttpHeader>> ) -> Self
The HTTP headers to use in the response.
sourcepub fn get_response_headers(&self) -> &Option<Vec<AwsWafv2CustomHttpHeader>>
pub fn get_response_headers(&self) -> &Option<Vec<AwsWafv2CustomHttpHeader>>
The HTTP headers to use in the response.
sourcepub fn build(self) -> AwsWafv2CustomResponseDetails
pub fn build(self) -> AwsWafv2CustomResponseDetails
Consumes the builder and constructs a AwsWafv2CustomResponseDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2CustomResponseDetailsBuilder
impl Clone for AwsWafv2CustomResponseDetailsBuilder
source§fn clone(&self) -> AwsWafv2CustomResponseDetailsBuilder
fn clone(&self) -> AwsWafv2CustomResponseDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsWafv2CustomResponseDetailsBuilder
impl Default for AwsWafv2CustomResponseDetailsBuilder
source§fn default() -> AwsWafv2CustomResponseDetailsBuilder
fn default() -> AwsWafv2CustomResponseDetailsBuilder
source§impl PartialEq<AwsWafv2CustomResponseDetailsBuilder> for AwsWafv2CustomResponseDetailsBuilder
impl PartialEq<AwsWafv2CustomResponseDetailsBuilder> for AwsWafv2CustomResponseDetailsBuilder
source§fn eq(&self, other: &AwsWafv2CustomResponseDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafv2CustomResponseDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.