Struct aws_sdk_waf::types::builders::GeoMatchConstraintBuilder
source · #[non_exhaustive]pub struct GeoMatchConstraintBuilder { /* private fields */ }Expand description
A builder for GeoMatchConstraint.
Implementations§
source§impl GeoMatchConstraintBuilder
impl GeoMatchConstraintBuilder
sourcepub fn type(self, input: GeoMatchConstraintType) -> Self
pub fn type(self, input: GeoMatchConstraintType) -> Self
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
sourcepub fn set_type(self, input: Option<GeoMatchConstraintType>) -> Self
pub fn set_type(self, input: Option<GeoMatchConstraintType>) -> Self
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
sourcepub fn get_type(&self) -> &Option<GeoMatchConstraintType>
pub fn get_type(&self) -> &Option<GeoMatchConstraintType>
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
sourcepub fn value(self, input: GeoMatchConstraintValue) -> Self
pub fn value(self, input: GeoMatchConstraintValue) -> Self
The country that you want AWS WAF to search for.
This field is required.sourcepub fn set_value(self, input: Option<GeoMatchConstraintValue>) -> Self
pub fn set_value(self, input: Option<GeoMatchConstraintValue>) -> Self
The country that you want AWS WAF to search for.
sourcepub fn get_value(&self) -> &Option<GeoMatchConstraintValue>
pub fn get_value(&self) -> &Option<GeoMatchConstraintValue>
The country that you want AWS WAF to search for.
sourcepub fn build(self) -> Result<GeoMatchConstraint, BuildError>
pub fn build(self) -> Result<GeoMatchConstraint, BuildError>
Consumes the builder and constructs a GeoMatchConstraint.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GeoMatchConstraintBuilder
impl Clone for GeoMatchConstraintBuilder
source§fn clone(&self) -> GeoMatchConstraintBuilder
fn clone(&self) -> GeoMatchConstraintBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GeoMatchConstraintBuilder
impl Debug for GeoMatchConstraintBuilder
source§impl Default for GeoMatchConstraintBuilder
impl Default for GeoMatchConstraintBuilder
source§fn default() -> GeoMatchConstraintBuilder
fn default() -> GeoMatchConstraintBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GeoMatchConstraintBuilder
impl PartialEq for GeoMatchConstraintBuilder
source§fn eq(&self, other: &GeoMatchConstraintBuilder) -> bool
fn eq(&self, other: &GeoMatchConstraintBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GeoMatchConstraintBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GeoMatchConstraintBuilder
impl Send for GeoMatchConstraintBuilder
impl Sync for GeoMatchConstraintBuilder
impl Unpin for GeoMatchConstraintBuilder
impl UnwindSafe for GeoMatchConstraintBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.