public class TagResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
Constructor and Description |
---|
TagResourceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceArn()
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to
which you want to associate the tags.
|
java.util.List<Tag> |
getTags()
Tags being associated with a specific Amazon Comprehend resource.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to
which you want to associate the tags.
|
void |
setTags(java.util.Collection<Tag> tags)
Tags being associated with a specific Amazon Comprehend resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to
which you want to associate the tags.
|
TagResourceRequest |
withTags(java.util.Collection<Tag> tags)
Tags being associated with a specific Amazon Comprehend resource.
|
TagResourceRequest |
withTags(Tag... tags)
Tags being associated with a specific Amazon Comprehend resource.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getResourceArn()
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
Z0-9-]{1,64}/[a-zA-Z0-9](-*[a-zA-Z0-9])*
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
public void setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
Z0-9-]{1,64}/[a-zA-Z0-9](-*[a-zA-Z0-9])*
resourceArn
- The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
public TagResourceRequest withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
Z0-9-]{1,64}/[a-zA-Z0-9](-*[a-zA-Z0-9])*
resourceArn
- The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want to associate the tags.
public java.util.List<Tag> getTags()
Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
public void setTags(java.util.Collection<Tag> tags)
Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
tags
- Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
public TagResourceRequest withTags(Tag... tags)
Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
Returns a reference to this object so that method calls can be chained together.
tags
- Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
public TagResourceRequest withTags(java.util.Collection<Tag> tags)
Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
Returns a reference to this object so that method calls can be chained together.
tags
- Tags being associated with a specific Amazon Comprehend resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.