@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegexPatternSetSummary extends Object implements Serializable, Cloneable, StructuredPojo
High-level information about a RegexPatternSet, returned by operations like create and list. This provides
information like the ID, that you can use to retrieve and manage a RegexPatternSet
, and the ARN, that
you provide to the RegexPatternSetReferenceStatement to use the pattern set in a Rule.
Constructor and Description |
---|
RegexPatternSetSummary() |
Modifier and Type | Method and Description |
---|---|
RegexPatternSetSummary |
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 |
getLockToken()
A token used for optimistic locking.
|
String |
getName()
The name of the data type instance.
|
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 |
setLockToken(String lockToken)
A token used for optimistic locking.
|
void |
setName(String name)
The name of the data type instance.
|
String |
toString()
Returns a string representation of this object.
|
RegexPatternSetSummary |
withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
RegexPatternSetSummary |
withDescription(String description)
A description of the set that helps with identification.
|
RegexPatternSetSummary |
withId(String id)
A unique identifier for the set.
|
RegexPatternSetSummary |
withLockToken(String lockToken)
A token used for optimistic locking.
|
RegexPatternSetSummary |
withName(String name)
The name of the data type instance.
|
public void setName(String name)
The name of the data type instance. You cannot change the name after you create the instance.
name
- The name of the data type instance. You cannot change the name after you create the instance.public String getName()
The name of the data type instance. You cannot change the name after you create the instance.
public RegexPatternSetSummary withName(String name)
The name of the data type instance. You cannot change the name after you create the instance.
name
- The name of the data type instance. You cannot change the name after you create the instance.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 RegexPatternSetSummary 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 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 RegexPatternSetSummary withDescription(String description)
A description of the set that helps with identification.
description
- A description of the set that helps with identification.public void setLockToken(String lockToken)
A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of
the entity at the time of the request. To make changes to the entity associated with the token, you provide the
token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a
WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by
that operation.
lockToken
- A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token,
you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no
changes have been made to the entity since you last retrieved it. If a change has been made, the update
fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the
new token returned by that operation.public String getLockToken()
A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of
the entity at the time of the request. To make changes to the entity associated with the token, you provide the
token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a
WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by
that operation.
WAFOptimisticLockException
. If this happens, perform another get, and use the
new token returned by that operation.public RegexPatternSetSummary withLockToken(String lockToken)
A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of
the entity at the time of the request. To make changes to the entity associated with the token, you provide the
token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to
the entity since you last retrieved it. If a change has been made, the update fails with a
WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by
that operation.
lockToken
- A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the
state of the entity at the time of the request. To make changes to the entity associated with the token,
you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no
changes have been made to the entity since you last retrieved it. If a change has been made, the update
fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the
new token returned by that operation.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 RegexPatternSetSummary withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
aRN
- The Amazon Resource Name (ARN) of the entity.public String toString()
toString
in class Object
Object.toString()
public RegexPatternSetSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.