Class AddTagsRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Specifies the tags to add to a trail.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Specifies the ARN of the trail to which one or more tags will be added.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.toString()
Returns a string representation of this object; useful for testing and debugging.withResourceId
(String resourceId) Specifies the ARN of the trail to which one or more tags will be added.withTagsList
(Tag... tagsList) Contains a list of CloudTrail tags, up to a limit of 10.withTagsList
(Collection<Tag> tagsList) Contains a list of CloudTrail tags, up to a limit of 10.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
AddTagsRequest
public AddTagsRequest()
-
-
Method Details
-
setResourceId
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
- Parameters:
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
-
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
- Returns:
- 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
-
withResourceId
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTagsList
Contains a list of CloudTrail tags, up to a limit of 10.
- Returns:
- Contains a list of CloudTrail tags, up to a limit of 10.
-
setTagsList
Contains a list of CloudTrail tags, up to a limit of 10.
- Parameters:
tagsList
- Contains a list of CloudTrail tags, up to a limit of 10.
-
withTagsList
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)
orwithTagsList(java.util.Collection)
if you want to override the existing values.- Parameters:
tagsList
- Contains a list of CloudTrail tags, up to a limit of 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTagsList
Contains a list of CloudTrail tags, up to a limit of 10.
- Parameters:
tagsList
- Contains a list of CloudTrail tags, up to a limit of 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-