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 Details

    • create

      @Stability(Stable) public static CfnGeoMatchSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnGeoMatchSet.Builder.
    • name

      @Stability(Stable) public CfnGeoMatchSet.Builder name(String name)
      A friendly name or description of the GeoMatchSet .

      You can't change the name of an GeoMatchSet after you create it.

      Parameters:
      name - A friendly name or description of the GeoMatchSet . This parameter is required.
      Returns:
      this
    • geoMatchConstraints

      @Stability(Stable) public CfnGeoMatchSet.Builder geoMatchConstraints(IResolvable geoMatchConstraints)
      An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.

      Parameters:
      geoMatchConstraints - An array of GeoMatchConstraint 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 of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.

      Parameters:
      geoMatchConstraints - An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnGeoMatchSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGeoMatchSet>
      Returns:
      a newly built instance of CfnGeoMatchSet.