/*
* 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.waf.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the
* developer guide.
*
* For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the
* latest version, AWS WAF has a single set of endpoints for regional and global use.
*
* The RegexPatternSet
specifies the regular expression (regex) pattern that you want AWS WAF to search
* for, such as B[a@]dB[o0]t
. You can then configure AWS WAF to reject those requests.
*
* The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
* about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
* AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
*
* A friendly name or description of the RegexPatternSet. You can't change Name
after you create
* a RegexPatternSet
.
*
* Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
* B[a@]dB[o0]t
.
*
* The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
* about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
* AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
*
RegexPatternSet
. You use RegexPatternSetId
to get
* information about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
* from AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by
* ListRegexPatternSets.
*/
public void setRegexPatternSetId(String regexPatternSetId) {
this.regexPatternSetId = regexPatternSetId;
}
/**
*
* The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
* about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
* AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
*
RegexPatternSet
. You use RegexPatternSetId
to get
* information about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
* from AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by
* ListRegexPatternSets.
*/
public String getRegexPatternSetId() {
return this.regexPatternSetId;
}
/**
*
* The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
* about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
* AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
*
RegexPatternSet
. You use RegexPatternSetId
to get
* information about a RegexPatternSet
, update a RegexPatternSet
, remove a
* RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
* from AWS WAF.
*
* RegexMatchSetId
is returned by CreateRegexPatternSet and by
* ListRegexPatternSets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegexPatternSet withRegexPatternSetId(String regexPatternSetId) {
setRegexPatternSetId(regexPatternSetId);
return this;
}
/**
*
* A friendly name or description of the RegexPatternSet. You can't change Name
after you create
* a RegexPatternSet
.
*
Name
after you
* create a RegexPatternSet
.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A friendly name or description of the RegexPatternSet. You can't change Name
after you create
* a RegexPatternSet
.
*
Name
after
* you create a RegexPatternSet
.
*/
public String getName() {
return this.name;
}
/**
*
* A friendly name or description of the RegexPatternSet. You can't change Name
after you create
* a RegexPatternSet
.
*
Name
after you
* create a RegexPatternSet
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegexPatternSet withName(String name) {
setName(name);
return this;
}
/**
*
* Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
* B[a@]dB[o0]t
.
*
B[a@]dB[o0]t
.
*/
public java.util.List
* Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
* B[a@]dB[o0]t
.
*
B[a@]dB[o0]t
.
*/
public void setRegexPatternStrings(java.util.Collection
* Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
* B[a@]dB[o0]t
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRegexPatternStrings(java.util.Collection)} or {@link #withRegexPatternStrings(java.util.Collection)} * if you want to override the existing values. *
* * @param regexPatternStrings * Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as *B[a@]dB[o0]t
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegexPatternSet withRegexPatternStrings(String... regexPatternStrings) {
if (this.regexPatternStrings == null) {
setRegexPatternStrings(new java.util.ArrayList
* Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
* B[a@]dB[o0]t
.
*
B[a@]dB[o0]t
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegexPatternSet withRegexPatternStrings(java.util.Collection