/*
* 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.
*
* Contains one or more countries that AWS WAF will search for. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GeoMatchSet implements Serializable, Cloneable, StructuredPojo { /** *
* The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
* UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*
* A friendly name or description of the GeoMatchSet. You can't change the name of an
* GeoMatchSet
after you create it.
*
* An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. *
*/ private java.util.List
* The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
* UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*
GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
* (see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
* from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*/
public void setGeoMatchSetId(String geoMatchSetId) {
this.geoMatchSetId = geoMatchSetId;
}
/**
*
* The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
* UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*
GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
* (see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
* from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*/
public String getGeoMatchSetId() {
return this.geoMatchSetId;
}
/**
*
* The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
* UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
* Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
*
GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
* information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
* (see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
* from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
* DeleteGeoMatchSet).
*
* GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GeoMatchSet withGeoMatchSetId(String geoMatchSetId) {
setGeoMatchSetId(geoMatchSetId);
return this;
}
/**
*
* A friendly name or description of the GeoMatchSet. You can't change the name of an
* GeoMatchSet
after you create it.
*
GeoMatchSet
after you create it.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A friendly name or description of the GeoMatchSet. You can't change the name of an
* GeoMatchSet
after you create it.
*
GeoMatchSet
after you create it.
*/
public String getName() {
return this.name;
}
/**
*
* A friendly name or description of the GeoMatchSet. You can't change the name of an
* GeoMatchSet
after you create it.
*
GeoMatchSet
after you create it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GeoMatchSet withName(String name) {
setName(name);
return this;
}
/**
* * An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. *
* * @return An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search * for. */ public java.util.List* An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. *
* * @param geoMatchConstraints * An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search * for. */ public void setGeoMatchConstraints(java.util.Collection* An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGeoMatchConstraints(java.util.Collection)} or {@link #withGeoMatchConstraints(java.util.Collection)} * if you want to override the existing values. *
* * @param geoMatchConstraints * An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search * for. * @return Returns a reference to this object so that method calls can be chained together. */ public GeoMatchSet withGeoMatchConstraints(GeoMatchConstraint... geoMatchConstraints) { if (this.geoMatchConstraints == null) { setGeoMatchConstraints(new java.util.ArrayList* An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for. *
* * @param geoMatchConstraints * An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search * for. * @return Returns a reference to this object so that method calls can be chained together. */ public GeoMatchSet withGeoMatchConstraints(java.util.Collection