public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Specifies the tags to add to a trail.
NOOP| Constructor and Description |
|---|
AddTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setResourceId(String 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.
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 String getResourceId()
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.
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
.public AddTagsRequest withResourceId(String 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.
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()
Contains a list of CloudTrail tags, up to a limit of 10.
public void setTagsList(Collection<Tag> tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
tagsList - Contains a list of CloudTrail tags, up to a limit of 10.public AddTagsRequest withTagsList(Tag... tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
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 - Contains a list of CloudTrail tags, up to a limit of 10.public AddTagsRequest withTagsList(Collection<Tag> tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
tagsList - Contains a list of CloudTrail tags, up to a limit of 10.public String toString()
toString in class ObjectObject.toString()public AddTagsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.