@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceTag extends Object implements Serializable, Cloneable, StructuredPojo
A resource tag.
Constructor and Description |
---|
ResourceTag() |
Modifier and Type | Method and Description |
---|---|
ResourceTag |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
Specifies the ARN of the resource.
|
List<Tag> |
getTagsList()
A list of tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceId(String resourceId)
Specifies the ARN of the resource.
|
void |
setTagsList(Collection<Tag> tagsList)
A list of tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResourceTag |
withResourceId(String resourceId)
Specifies the ARN of the resource.
|
ResourceTag |
withTagsList(Collection<Tag> tagsList)
A list of tags.
|
ResourceTag |
withTagsList(Tag... tagsList)
A list of tags.
|
public void setResourceId(String resourceId)
Specifies the ARN of the resource.
resourceId
- Specifies the ARN of the resource.public String getResourceId()
Specifies the ARN of the resource.
public ResourceTag withResourceId(String resourceId)
Specifies the ARN of the resource.
resourceId
- Specifies the ARN of the resource.public void setTagsList(Collection<Tag> tagsList)
A list of tags.
tagsList
- A list of tags.public ResourceTag withTagsList(Tag... tagsList)
A list of tags.
NOTE: This method appends the values to the existing list (if any). Use
setTagsList(java.util.Collection)
or withTagsList(java.util.Collection)
if you want to override
the existing values.
tagsList
- A list of tags.public ResourceTag withTagsList(Collection<Tag> tagsList)
A list of tags.
tagsList
- A list of tags.public String toString()
toString
in class Object
Object.toString()
public ResourceTag clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.