public class AddTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Specifies the tags to add to a trail.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
Specifies the ARN of the trail to which one or more tags will be added.
|
private SdkInternalList<Tag> |
tagsList
Contains a list of CloudTrail tags, up to a limit of 10.
|
NOOP
Constructor and Description |
---|
AddTagsRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
Specifies the ARN of the trail to which one or more tags will be added.
|
java.util.List<Tag> |
getTagsList()
Contains a list of CloudTrail tags, up to a limit of 10.
|
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
Specifies the ARN of the trail to which one or more tags will be added.
|
void |
setTagsList(java.util.Collection<Tag> tagsList)
Contains a list of CloudTrail tags, up to a limit of 10.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withResourceId(java.lang.String resourceId)
Specifies the ARN of the trail to which one or more tags will be added.
|
AddTagsRequest |
withTagsList(java.util.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, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.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
private SdkInternalList<Tag> tagsList
Contains a list of CloudTrail tags, up to a limit of 10.
public void setResourceId(java.lang.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 java.lang.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(java.lang.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 java.util.List<Tag> getTagsList()
Contains a list of CloudTrail tags, up to a limit of 10.
public void setTagsList(java.util.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(java.util.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 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 AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()