#[non_exhaustive]pub struct SourceIpConditionConfigBuilder { /* private fields */ }
Expand description
A builder for SourceIpConditionConfig
.
Implementations§
source§impl SourceIpConditionConfigBuilder
impl SourceIpConditionConfigBuilder
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
The total number of values must be less than, or equal to five.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
The total number of values must be less than, or equal to five.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
The total number of values must be less than, or equal to five.
sourcepub fn build(self) -> SourceIpConditionConfig
pub fn build(self) -> SourceIpConditionConfig
Consumes the builder and constructs a SourceIpConditionConfig
.
Trait Implementations§
source§impl Clone for SourceIpConditionConfigBuilder
impl Clone for SourceIpConditionConfigBuilder
source§fn clone(&self) -> SourceIpConditionConfigBuilder
fn clone(&self) -> SourceIpConditionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SourceIpConditionConfigBuilder
impl Default for SourceIpConditionConfigBuilder
source§fn default() -> SourceIpConditionConfigBuilder
fn default() -> SourceIpConditionConfigBuilder
source§impl PartialEq for SourceIpConditionConfigBuilder
impl PartialEq for SourceIpConditionConfigBuilder
source§fn eq(&self, other: &SourceIpConditionConfigBuilder) -> bool
fn eq(&self, other: &SourceIpConditionConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SourceIpConditionConfigBuilder
Auto Trait Implementations§
impl Freeze for SourceIpConditionConfigBuilder
impl RefUnwindSafe for SourceIpConditionConfigBuilder
impl Send for SourceIpConditionConfigBuilder
impl Sync for SourceIpConditionConfigBuilder
impl Unpin for SourceIpConditionConfigBuilder
impl UnwindSafe for SourceIpConditionConfigBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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