public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AddTags operation.
Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null.
NOOP| Constructor and Description |
|---|
AddTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
AddTagsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
Specifies the ARN of the trail to which one or more tags will be
added.
|
List<Tag> |
getTagsList()
Contains a list of CloudTrail tags, up to a limit of 10.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
Specifies the ARN of the trail to which one or more tags will be
added.
|
void |
setTagsList(Collection<Tag> tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withResourceId(String resourceId)
Specifies the ARN of the trail to which one or more tags will be
added.
|
AddTagsRequest |
withTagsList(Collection<Tag> tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
|
AddTagsRequest |
withTagsList(Tag... tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getResourceId()
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public void setResourceId(String resourceId)
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.resourceId - Specifies the ARN of the trail to which one or more tags will be
added. The format of a trail ARN is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public AddTagsRequest withResourceId(String resourceId)
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
Returns a reference to this object so that method calls can be chained together.
resourceId - Specifies the ARN of the trail to which one or more tags will be
added. The format of a trail ARN is
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.public List<Tag> getTagsList()
public void setTagsList(Collection<Tag> tagsList)
tagsList - Contains a list of CloudTrail tags, up to a limit of 10.public AddTagsRequest 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.
Returns a reference to this object so that method calls can be chained together.
tagsList - Contains a list of CloudTrail tags, up to a limit of 10.public AddTagsRequest withTagsList(Collection<Tag> tagsList)
Returns a reference to this object so that method calls can be chained together.
tagsList - Contains a list of CloudTrail tags, up to a limit of 10.public String toString()
toString in class ObjectObject.toString()public AddTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.