Struct aws_sdk_waf::types::builders::GeoMatchSetBuilder
source · #[non_exhaustive]pub struct GeoMatchSetBuilder { /* private fields */ }Expand description
A builder for GeoMatchSet.
Implementations§
source§impl GeoMatchSetBuilder
impl GeoMatchSetBuilder
sourcepub fn geo_match_set_id(self, input: impl Into<String>) -> Self
pub fn geo_match_set_id(self, input: impl Into<String>) -> Self
The GeoMatchSetId for an GeoMatchSet. You use GeoMatchSetId to get information about a GeoMatchSet (see GeoMatchSet), update a GeoMatchSet (see UpdateGeoMatchSet), insert a GeoMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a GeoMatchSet from AWS WAF (see DeleteGeoMatchSet).
GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets.
sourcepub fn set_geo_match_set_id(self, input: Option<String>) -> Self
pub fn set_geo_match_set_id(self, input: Option<String>) -> Self
The GeoMatchSetId for an GeoMatchSet. You use GeoMatchSetId to get information about a GeoMatchSet (see GeoMatchSet), update a GeoMatchSet (see UpdateGeoMatchSet), insert a GeoMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a GeoMatchSet from AWS WAF (see DeleteGeoMatchSet).
GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets.
sourcepub fn get_geo_match_set_id(&self) -> &Option<String>
pub fn get_geo_match_set_id(&self) -> &Option<String>
The GeoMatchSetId for an GeoMatchSet. You use GeoMatchSetId to get information about a GeoMatchSet (see GeoMatchSet), update a GeoMatchSet (see UpdateGeoMatchSet), insert a GeoMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a GeoMatchSet from AWS WAF (see DeleteGeoMatchSet).
GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A friendly name or description of the GeoMatchSet. You can't change the name of an GeoMatchSet after you create it.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A friendly name or description of the GeoMatchSet. You can't change the name of an GeoMatchSet after you create it.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the GeoMatchSet. You can't change the name of an GeoMatchSet after you create it.
sourcepub fn geo_match_constraints(self, input: GeoMatchConstraint) -> Self
pub fn geo_match_constraints(self, input: GeoMatchConstraint) -> Self
Appends an item to geo_match_constraints.
To override the contents of this collection use set_geo_match_constraints.
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
sourcepub fn set_geo_match_constraints(
self,
input: Option<Vec<GeoMatchConstraint>>
) -> Self
pub fn set_geo_match_constraints( self, input: Option<Vec<GeoMatchConstraint>> ) -> Self
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
sourcepub fn get_geo_match_constraints(&self) -> &Option<Vec<GeoMatchConstraint>>
pub fn get_geo_match_constraints(&self) -> &Option<Vec<GeoMatchConstraint>>
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
sourcepub fn build(self) -> Result<GeoMatchSet, BuildError>
pub fn build(self) -> Result<GeoMatchSet, BuildError>
Consumes the builder and constructs a GeoMatchSet.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GeoMatchSetBuilder
impl Clone for GeoMatchSetBuilder
source§fn clone(&self) -> GeoMatchSetBuilder
fn clone(&self) -> GeoMatchSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GeoMatchSetBuilder
impl Debug for GeoMatchSetBuilder
source§impl Default for GeoMatchSetBuilder
impl Default for GeoMatchSetBuilder
source§fn default() -> GeoMatchSetBuilder
fn default() -> GeoMatchSetBuilder
source§impl PartialEq for GeoMatchSetBuilder
impl PartialEq for GeoMatchSetBuilder
source§fn eq(&self, other: &GeoMatchSetBuilder) -> bool
fn eq(&self, other: &GeoMatchSetBuilder) -> bool
self and other values to be equal, and is used
by ==.