@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegexPatternSet extends Object implements Serializable, Cloneable, StructuredPojo
Contains one or more regular expressions.
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 description of the set that helps with identification.
|
String |
getId()
A unique identifier for the set.
|
String |
getName()
The 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 description of the set that helps with identification.
|
void |
setId(String id)
A unique identifier for the set.
|
void |
setName(String name)
The 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 description of the set that helps with identification.
|
RegexPatternSet |
withId(String id)
A unique identifier for the set.
|
RegexPatternSet |
withName(String name)
The 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)
The name of the set. You cannot change the name after you create the set.
name
- The name of the set. You cannot change the name after you create the set.public String getName()
The name of the set. You cannot change the name after you create the set.
public RegexPatternSet withName(String name)
The name of the set. You cannot change the name after you create the set.
name
- The 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 description of the set that helps with identification.
description
- A description of the set that helps with identification.public String getDescription()
A description of the set that helps with identification.
public RegexPatternSet withDescription(String description)
A description of the set that helps with identification.
description
- A description of the set that helps with identification.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.