/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A match predicate. A predicate might look for characteristics such as specific IP addresses, geographic locations, or * sizes. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRateBasedRuleMatchPredicate implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier for the predicate. *
*/ private String dataId; /** *
* If set to true
, then the rule actions are performed on requests that match the predicate settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match the
* predicate settings.
*
* The type of predicate. Valid values are as follows: *
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* The unique identifier for the predicate. *
* * @param dataId * The unique identifier for the predicate. */ public void setDataId(String dataId) { this.dataId = dataId; } /** ** The unique identifier for the predicate. *
* * @return The unique identifier for the predicate. */ public String getDataId() { return this.dataId; } /** ** The unique identifier for the predicate. *
* * @param dataId * The unique identifier for the predicate. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsWafRateBasedRuleMatchPredicate withDataId(String dataId) { setDataId(dataId); return this; } /** *
* If set to true
, then the rule actions are performed on requests that match the predicate settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match the
* predicate settings.
*
true
, then the rule actions are performed on requests that match the predicate
* settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match
* the predicate settings.
*/
public void setNegated(Boolean negated) {
this.negated = negated;
}
/**
*
* If set to true
, then the rule actions are performed on requests that match the predicate settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match the
* predicate settings.
*
true
, then the rule actions are performed on requests that match the predicate
* settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match
* the predicate settings.
*/
public Boolean getNegated() {
return this.negated;
}
/**
*
* If set to true
, then the rule actions are performed on requests that match the predicate settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match the
* predicate settings.
*
true
, then the rule actions are performed on requests that match the predicate
* settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match
* the predicate settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsWafRateBasedRuleMatchPredicate withNegated(Boolean negated) {
setNegated(negated);
return this;
}
/**
*
* If set to true
, then the rule actions are performed on requests that match the predicate settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match the
* predicate settings.
*
true
, then the rule actions are performed on requests that match the predicate
* settings.
*
* If set to false
, then the rule actions are performed on all requests except those that match
* the predicate settings.
*/
public Boolean isNegated() {
return this.negated;
}
/**
*
* The type of predicate. Valid values are as follows: *
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* The type of predicate. Valid values are as follows: *
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* The type of predicate. Valid values are as follows: *
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*
* ByteMatch
*
* GeoMatch
*
* IPMatch
*
* RegexMatch
*
* SizeConstraint
*
* SqlInjectionMatch
*
* XssMatch
*