@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagInfoForResource 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.
The collection of tagging definitions for an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as "environment", and the tag value represents a specific value within that category, such as "test," "development," or "production". Or you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.
You can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
| Constructor and Description |
|---|
TagInfoForResource() |
| Modifier and Type | Method and Description |
|---|---|
TagInfoForResource |
clone() |
boolean |
equals(Object obj) |
String |
getResourceARN()
The Amazon Resource Name (ARN) of the resource.
|
List<Tag> |
getTagList()
The array of Tag objects defined for the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the resource.
|
void |
setTagList(Collection<Tag> tagList)
The array of Tag objects defined for the resource.
|
String |
toString()
Returns a string representation of this object.
|
TagInfoForResource |
withResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the resource.
|
TagInfoForResource |
withTagList(Collection<Tag> tagList)
The array of Tag objects defined for the resource.
|
TagInfoForResource |
withTagList(Tag... tagList)
The array of Tag objects defined for the resource.
|
public void setResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the resource.
resourceARN - The Amazon Resource Name (ARN) of the resource.public String getResourceARN()
The Amazon Resource Name (ARN) of the resource.
public TagInfoForResource withResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the resource.
resourceARN - The Amazon Resource Name (ARN) of the resource.public List<Tag> getTagList()
The array of Tag objects defined for the resource.
public void setTagList(Collection<Tag> tagList)
The array of Tag objects defined for the resource.
tagList - The array of Tag objects defined for the resource.public TagInfoForResource withTagList(Tag... tagList)
The array of Tag objects defined for the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTagList(java.util.Collection) or withTagList(java.util.Collection) if you want to override
the existing values.
tagList - The array of Tag objects defined for the resource.public TagInfoForResource withTagList(Collection<Tag> tagList)
The array of Tag objects defined for the resource.
tagList - The array of Tag objects defined for the resource.public String toString()
toString in class ObjectObject.toString()public TagInfoForResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.