@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagInfoForResource extends Object implements Serializable, Cloneable, StructuredPojo
The collection of tagging definitions for an Amazon Web Services 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 Amazon Web Services resource, up to 50 tags for a resource.
You can tag the Amazon Web Services resources that you manage through WAF: web ACLs, rule groups, IP sets, and regex pattern sets. You can't manage or view tags through the 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 Object
Object.toString()
public TagInfoForResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.