Class CfnGeoMatchSet.Builder
java.lang.Object
software.amazon.awscdk.services.waf.regional.CfnGeoMatchSet.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGeoMatchSet>
- Enclosing class:
CfnGeoMatchSet
@Stability(Stable)
public static final class CfnGeoMatchSet.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGeoMatchSet>
A fluent builder for
CfnGeoMatchSet
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnGeoMatchSet.Builder
geoMatchConstraints
(List<? extends Object> geoMatchConstraints) An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for.geoMatchConstraints
(IResolvable geoMatchConstraints) An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for.A friendly name or description of theGeoMatchSet
.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnGeoMatchSet.Builder
.
-
name
A friendly name or description of theGeoMatchSet
.You can't change the name of an
GeoMatchSet
after you create it.- Parameters:
name
- A friendly name or description of theGeoMatchSet
. This parameter is required.- Returns:
this
-
geoMatchConstraints
@Stability(Stable) public CfnGeoMatchSet.Builder geoMatchConstraints(IResolvable geoMatchConstraints) An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for.- Parameters:
geoMatchConstraints
- An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for. This parameter is required.- Returns:
this
-
geoMatchConstraints
@Stability(Stable) public CfnGeoMatchSet.Builder geoMatchConstraints(List<? extends Object> geoMatchConstraints) An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for.- Parameters:
geoMatchConstraints
- An array ofGeoMatchConstraint
objects, which contain the country that you want AWS WAF to search for. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGeoMatchSet>
- Returns:
- a newly built instance of
CfnGeoMatchSet
.
-