@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegexPatternSet extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
Contains one or more regular expressions.
AWS WAF assigns an ARN to each RegexPatternSet
that you create. To use a set in a rule, you provide the
ARN to the Rule statement RegexPatternSetReferenceStatement.
Constructor and Description |
---|
RegexPatternSet() |
Modifier and Type | Method and Description |
---|---|
RegexPatternSet |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The Amazon Resource Name (ARN) of the entity.
|
String |
getDescription()
A friendly description of the set.
|
String |
getId()
A unique identifier for the set.
|
String |
getName()
A friendly name of the set.
|
List<Regex> |
getRegularExpressionList()
The regular expression patterns in the set.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
void |
setDescription(String description)
A friendly description of the set.
|
void |
setId(String id)
A unique identifier for the set.
|
void |
setName(String name)
A friendly name of the set.
|
void |
setRegularExpressionList(Collection<Regex> regularExpressionList)
The regular expression patterns in the set.
|
String |
toString()
Returns a string representation of this object.
|
RegexPatternSet |
withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
RegexPatternSet |
withDescription(String description)
A friendly description of the set.
|
RegexPatternSet |
withId(String id)
A unique identifier for the set.
|
RegexPatternSet |
withName(String name)
A friendly name of the set.
|
RegexPatternSet |
withRegularExpressionList(Collection<Regex> regularExpressionList)
The regular expression patterns in the set.
|
RegexPatternSet |
withRegularExpressionList(Regex... regularExpressionList)
The regular expression patterns in the set.
|
public void setName(String name)
A friendly name of the set. You cannot change the name after you create the set.
name
- A friendly name of the set. You cannot change the name after you create the set.public String getName()
A friendly name of the set. You cannot change the name after you create the set.
public RegexPatternSet withName(String name)
A friendly name of the set. You cannot change the name after you create the set.
name
- A friendly name of the set. You cannot change the name after you create the set.public void setId(String id)
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
id
- A unique identifier for the set. This ID is returned in the responses to create and list commands. You
provide it to operations like update and delete.public String getId()
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
public RegexPatternSet withId(String id)
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
id
- A unique identifier for the set. This ID is returned in the responses to create and list commands. You
provide it to operations like update and delete.public void setARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
aRN
- The Amazon Resource Name (ARN) of the entity.public String getARN()
The Amazon Resource Name (ARN) of the entity.
public RegexPatternSet withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
aRN
- The Amazon Resource Name (ARN) of the entity.public void setDescription(String description)
A friendly description of the set. You cannot change the description of a set after you create it.
description
- A friendly description of the set. You cannot change the description of a set after you create it.public String getDescription()
A friendly description of the set. You cannot change the description of a set after you create it.
public RegexPatternSet withDescription(String description)
A friendly description of the set. You cannot change the description of a set after you create it.
description
- A friendly description of the set. You cannot change the description of a set after you create it.public List<Regex> getRegularExpressionList()
The regular expression patterns in the set.
public void setRegularExpressionList(Collection<Regex> regularExpressionList)
The regular expression patterns in the set.
regularExpressionList
- The regular expression patterns in the set.public RegexPatternSet withRegularExpressionList(Regex... regularExpressionList)
The regular expression patterns in the set.
NOTE: This method appends the values to the existing list (if any). Use
setRegularExpressionList(java.util.Collection)
or
withRegularExpressionList(java.util.Collection)
if you want to override the existing values.
regularExpressionList
- The regular expression patterns in the set.public RegexPatternSet withRegularExpressionList(Collection<Regex> regularExpressionList)
The regular expression patterns in the set.
regularExpressionList
- The regular expression patterns in the set.public String toString()
toString
in class Object
Object.toString()
public RegexPatternSet clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.