public class ResourceTag
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A resource tag.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
Specifies the ARN of the resource.
|
private SdkInternalList<Tag> |
tagsList |
Constructor and Description |
---|
ResourceTag() |
Modifier and Type | Method and Description |
---|---|
ResourceTag |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
Specifies the ARN of the resource.
|
java.util.List<Tag> |
getTagsList() |
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
Specifies the ARN of the resource.
|
void |
setTagsList(java.util.Collection<Tag> tagsList) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceTag |
withResourceId(java.lang.String resourceId)
Specifies the ARN of the resource.
|
ResourceTag |
withTagsList(java.util.Collection<Tag> tagsList) |
ResourceTag |
withTagsList(Tag... tagsList)
NOTE: This method appends the values to the existing list (if
any).
|
private java.lang.String resourceId
Specifies the ARN of the resource.
private SdkInternalList<Tag> tagsList
public void setResourceId(java.lang.String resourceId)
Specifies the ARN of the resource.
resourceId
- Specifies the ARN of the resource.public java.lang.String getResourceId()
Specifies the ARN of the resource.
public ResourceTag withResourceId(java.lang.String resourceId)
Specifies the ARN of the resource.
resourceId
- Specifies the ARN of the resource.public java.util.List<Tag> getTagsList()
public void setTagsList(java.util.Collection<Tag> tagsList)
tagsList
- public ResourceTag withTagsList(Tag... tagsList)
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
- public ResourceTag withTagsList(java.util.Collection<Tag> tagsList)
tagsList
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResourceTag clone()
clone
in class java.lang.Object