#[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
.
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
.
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
.
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 ==
.