@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoMatchConstraint extends Object implements Serializable, Cloneable, StructuredPojo
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 country from which web requests originate that you want AWS WAF to search for.
| Constructor and Description |
|---|
GeoMatchConstraint() |
| Modifier and Type | Method and Description |
|---|---|
GeoMatchConstraint |
clone() |
boolean |
equals(Object obj) |
String |
getType()
The type of geographical area you want AWS WAF to search for.
|
String |
getValue()
The country that you want AWS WAF to search for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setType(String type)
The type of geographical area you want AWS WAF to search for.
|
void |
setValue(String value)
The country that you want AWS WAF to search for.
|
String |
toString()
Returns a string representation of this object.
|
GeoMatchConstraint |
withType(GeoMatchConstraintType type)
The type of geographical area you want AWS WAF to search for.
|
GeoMatchConstraint |
withType(String type)
The type of geographical area you want AWS WAF to search for.
|
GeoMatchConstraint |
withValue(GeoMatchConstraintValue value)
The country that you want AWS WAF to search for.
|
GeoMatchConstraint |
withValue(String value)
The country that you want AWS WAF to search for.
|
public void setType(String type)
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid
value.
type - The type of geographical area you want AWS WAF to search for. Currently Country is the only
valid value.GeoMatchConstraintTypepublic String getType()
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid
value.
Country is the only
valid value.GeoMatchConstraintTypepublic GeoMatchConstraint withType(String type)
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid
value.
type - The type of geographical area you want AWS WAF to search for. Currently Country is the only
valid value.GeoMatchConstraintTypepublic GeoMatchConstraint withType(GeoMatchConstraintType type)
The type of geographical area you want AWS WAF to search for. Currently Country is the only valid
value.
type - The type of geographical area you want AWS WAF to search for. Currently Country is the only
valid value.GeoMatchConstraintTypepublic void setValue(String value)
The country that you want AWS WAF to search for.
value - The country that you want AWS WAF to search for.GeoMatchConstraintValuepublic String getValue()
The country that you want AWS WAF to search for.
GeoMatchConstraintValuepublic GeoMatchConstraint withValue(String value)
The country that you want AWS WAF to search for.
value - The country that you want AWS WAF to search for.GeoMatchConstraintValuepublic GeoMatchConstraint withValue(GeoMatchConstraintValue value)
The country that you want AWS WAF to search for.
value - The country that you want AWS WAF to search for.GeoMatchConstraintValuepublic String toString()
toString in class ObjectObject.toString()public GeoMatchConstraint clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.