Class CfnRateBasedRulePropsMixin.PredicateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRateBasedRulePropsMixin.PredicateProperty>
- Enclosing interface:
CfnRateBasedRulePropsMixin.PredicateProperty
CfnRateBasedRulePropsMixin.PredicateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getDataId()Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getNegated()negated(IResolvable negated) Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getNegated()Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataId
@Stability(Stable) public CfnRateBasedRulePropsMixin.PredicateProperty.Builder dataId(String dataId) Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getDataId()- Parameters:
dataId- A unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.- Returns:
this
-
negated
@Stability(Stable) public CfnRateBasedRulePropsMixin.PredicateProperty.Builder negated(Boolean negated) Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getNegated()- Parameters:
negated- SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specifiedByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, orSizeConstraintSet. For example, if anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif you want AWS WAF to allow or block a request based on the negation of the settings in theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, orSizeConstraintSet>. For example, if anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Returns:
this
-
negated
@Stability(Stable) public CfnRateBasedRulePropsMixin.PredicateProperty.Builder negated(IResolvable negated) Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getNegated()- Parameters:
negated- SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specifiedByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, orSizeConstraintSet. For example, if anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif you want AWS WAF to allow or block a request based on the negation of the settings in theByteMatchSet,IPSet,SqlInjectionMatchSet,XssMatchSet,RegexMatchSet,GeoMatchSet, orSizeConstraintSet>. For example, if anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Returns:
this
-
type
Sets the value ofCfnRateBasedRulePropsMixin.PredicateProperty.getType()- Parameters:
type- The type of predicate in aRule, such asByteMatchorIPSet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRateBasedRulePropsMixin.PredicateProperty>- Returns:
- a new instance of
CfnRateBasedRulePropsMixin.PredicateProperty - Throws:
NullPointerException- if any required attribute was not provided
-