Class ResourceTag
- java.lang.Object
-
- com.amazonaws.services.cloudtrail.model.ResourceTag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ResourceTag extends Object implements Serializable, Cloneable
A resource tag.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceTag
clone()
boolean
equals(Object obj)
String
getResourceId()
Specifies the ARN of the resource.List<Tag>
getTagsList()
int
hashCode()
void
setResourceId(String resourceId)
Specifies the ARN of the resource.void
setTagsList(Collection<Tag> tagsList)
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(Tag... tagsList)
NOTE: This method appends the values to the existing list (if any).ResourceTag
withTagsList(Collection<Tag> tagsList)
-
-
-
Method Detail
-
setResourceId
public void setResourceId(String resourceId)
Specifies the ARN of the resource.
- Parameters:
resourceId
- Specifies the ARN of the resource.
-
getResourceId
public String getResourceId()
Specifies the ARN of the resource.
- Returns:
- Specifies the ARN of the resource.
-
withResourceId
public ResourceTag withResourceId(String resourceId)
Specifies the ARN of the resource.
- Parameters:
resourceId
- Specifies the ARN of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTagsList
public void setTagsList(Collection<Tag> tagsList)
- Parameters:
tagsList
-
-
withTagsList
public ResourceTag withTagsList(Tag... tagsList)
NOTE: This method appends the values to the existing list (if any). Use
setTagsList(java.util.Collection)
orwithTagsList(java.util.Collection)
if you want to override the existing values.- Parameters:
tagsList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTagsList
public ResourceTag withTagsList(Collection<Tag> tagsList)
- Parameters:
tagsList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceTag clone()
-
-