@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSummary 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.
High-level information about a RuleGroup, returned by operations like create and list. This provides
information like the ID, that you can use to retrieve and manage a RuleGroup
, and the ARN, that you
provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
Constructor and Description |
---|
RuleGroupSummary() |
Modifier and Type | Method and Description |
---|---|
RuleGroupSummary |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The Amazon Resource Name (ARN) of the entity.
|
String |
getDescription()
A description of the rule group that helps with identification.
|
String |
getId()
A unique identifier for the rule group.
|
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 rule group that helps with identification.
|
void |
setId(String id)
A unique identifier for the rule group.
|
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.
|
RuleGroupSummary |
withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
RuleGroupSummary |
withDescription(String description)
A description of the rule group that helps with identification.
|
RuleGroupSummary |
withId(String id)
A unique identifier for the rule group.
|
RuleGroupSummary |
withLockToken(String lockToken)
A token used for optimistic locking.
|
RuleGroupSummary |
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 RuleGroupSummary 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 rule group. 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 rule group. 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 rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
public RuleGroupSummary withId(String id)
A unique identifier for the rule group. 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 rule group. 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 rule group that helps with identification. You cannot change the description of a rule group after you create it.
description
- A description of the rule group that helps with identification. You cannot change the description of a
rule group after you create it.public String getDescription()
A description of the rule group that helps with identification. You cannot change the description of a rule group after you create it.
public RuleGroupSummary withDescription(String description)
A description of the rule group that helps with identification. You cannot change the description of a rule group after you create it.
description
- A description of the rule group that helps with identification. You cannot change the description of a
rule group after you create it.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 RuleGroupSummary 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 RuleGroupSummary 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 RuleGroupSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.