/*
* 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.
*
* A complex type that contains XssMatchTuple
objects, which specify the parts of web requests that you
* want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of
* the header. If a XssMatchSet
contains more than one XssMatchTuple
object, a request needs
* to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.
*
* A unique identifier for an XssMatchSet
. You use XssMatchSetId
to get information about
* an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*
* The name, if any, of the XssMatchSet
.
*
* Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. *
*/ private java.util.List
* A unique identifier for an XssMatchSet
. You use XssMatchSetId
to get information about
* an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*
XssMatchSet
. You use XssMatchSetId
to get information
* about an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from
* a Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*/
public void setXssMatchSetId(String xssMatchSetId) {
this.xssMatchSetId = xssMatchSetId;
}
/**
*
* A unique identifier for an XssMatchSet
. You use XssMatchSetId
to get information about
* an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*
XssMatchSet
. You use XssMatchSetId
to get
* information about an XssMatchSet
(see GetXssMatchSet), update an
* XssMatchSet
(see UpdateXssMatchSet), insert an XssMatchSet
into a
* Rule
or delete one from a Rule
(see UpdateRule), and delete an
* XssMatchSet
from AWS WAF (see DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*/
public String getXssMatchSetId() {
return this.xssMatchSetId;
}
/**
*
* A unique identifier for an XssMatchSet
. You use XssMatchSetId
to get information about
* an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
*
XssMatchSet
. You use XssMatchSetId
to get information
* about an XssMatchSet
(see GetXssMatchSet), update an XssMatchSet
(see
* UpdateXssMatchSet), insert an XssMatchSet
into a Rule
or delete one from
* a Rule
(see UpdateRule), and delete an XssMatchSet
from AWS WAF (see
* DeleteXssMatchSet).
*
* XssMatchSetId
is returned by CreateXssMatchSet and by ListXssMatchSets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public XssMatchSet withXssMatchSetId(String xssMatchSetId) {
setXssMatchSetId(xssMatchSetId);
return this;
}
/**
*
* The name, if any, of the XssMatchSet
.
*
XssMatchSet
.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name, if any, of the XssMatchSet
.
*
XssMatchSet
.
*/
public String getName() {
return this.name;
}
/**
*
* The name, if any, of the XssMatchSet
.
*
XssMatchSet
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public XssMatchSet withName(String name) {
setName(name);
return this;
}
/**
* * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. *
* * @return Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. */ public java.util.List* Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. *
* * @param xssMatchTuples * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. */ public void setXssMatchTuples(java.util.Collection* Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setXssMatchTuples(java.util.Collection)} or {@link #withXssMatchTuples(java.util.Collection)} if you want * to override the existing values. *
* * @param xssMatchTuples * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withXssMatchTuples(XssMatchTuple... xssMatchTuples) { if (this.xssMatchTuples == null) { setXssMatchTuples(new java.util.ArrayList* Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. *
* * @param xssMatchTuples * Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. * @return Returns a reference to this object so that method calls can be chained together. */ public XssMatchSet withXssMatchTuples(java.util.Collection