#[non_exhaustive]pub struct IpSetReferenceStatementBuilder { /* private fields */ }
Expand description
A builder for IpSetReferenceStatement
.
Implementations§
source§impl IpSetReferenceStatementBuilder
impl IpSetReferenceStatementBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IPSet
that this statement references.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IPSet
that this statement references.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IPSet
that this statement references.
sourcepub fn ip_set_forwarded_ip_config(self, input: IpSetForwardedIpConfig) -> Self
pub fn ip_set_forwarded_ip_config(self, input: IpSetForwardedIpConfig) -> Self
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
sourcepub fn set_ip_set_forwarded_ip_config(
self,
input: Option<IpSetForwardedIpConfig>
) -> Self
pub fn set_ip_set_forwarded_ip_config( self, input: Option<IpSetForwardedIpConfig> ) -> Self
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
sourcepub fn get_ip_set_forwarded_ip_config(&self) -> &Option<IpSetForwardedIpConfig>
pub fn get_ip_set_forwarded_ip_config(&self) -> &Option<IpSetForwardedIpConfig>
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
sourcepub fn build(self) -> Result<IpSetReferenceStatement, BuildError>
pub fn build(self) -> Result<IpSetReferenceStatement, BuildError>
Consumes the builder and constructs a IpSetReferenceStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IpSetReferenceStatementBuilder
impl Clone for IpSetReferenceStatementBuilder
source§fn clone(&self) -> IpSetReferenceStatementBuilder
fn clone(&self) -> IpSetReferenceStatementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for IpSetReferenceStatementBuilder
impl Default for IpSetReferenceStatementBuilder
source§fn default() -> IpSetReferenceStatementBuilder
fn default() -> IpSetReferenceStatementBuilder
source§impl PartialEq for IpSetReferenceStatementBuilder
impl PartialEq for IpSetReferenceStatementBuilder
source§fn eq(&self, other: &IpSetReferenceStatementBuilder) -> bool
fn eq(&self, other: &IpSetReferenceStatementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpSetReferenceStatementBuilder
Auto Trait Implementations§
impl Freeze for IpSetReferenceStatementBuilder
impl RefUnwindSafe for IpSetReferenceStatementBuilder
impl Send for IpSetReferenceStatementBuilder
impl Sync for IpSetReferenceStatementBuilder
impl Unpin for IpSetReferenceStatementBuilder
impl UnwindSafe for IpSetReferenceStatementBuilder
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