public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
AddTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
AddTagsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
The ID of the ML object to tag.
|
String |
getResourceType()
The type of the ML object to tag.
|
List<Tag> |
getTags()
The key-value pairs to use to create tags.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
The ID of the ML object to tag.
|
void |
setResourceType(String resourceType)
The type of the ML object to tag.
|
void |
setResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
|
void |
setTags(Collection<Tag> tags)
The key-value pairs to use to create tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AddTagsRequest |
withResourceId(String resourceId)
The ID of the ML object to tag.
|
AddTagsRequest |
withResourceType(String resourceType)
The type of the ML object to tag.
|
AddTagsRequest |
withResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
|
AddTagsRequest |
withTags(Collection<Tag> tags)
The key-value pairs to use to create tags.
|
AddTagsRequest |
withTags(Tag... tags)
The key-value pairs to use to create tags.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic List<Tag> getTags()
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
public void setTags(Collection<Tag> tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML
creates a tag with the specified key and a value of null.public AddTagsRequest withTags(Tag... tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML
creates a tag with the specified key and a value of null.public AddTagsRequest withTags(Collection<Tag> tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML
creates a tag with the specified key and a value of null.public void setResourceId(String resourceId)
The ID of the ML object to tag. For example, exampleModelId.
resourceId - The ID of the ML object to tag. For example, exampleModelId.public String getResourceId()
The ID of the ML object to tag. For example, exampleModelId.
exampleModelId.public AddTagsRequest withResourceId(String resourceId)
The ID of the ML object to tag. For example, exampleModelId.
resourceId - The ID of the ML object to tag. For example, exampleModelId.public void setResourceType(String resourceType)
The type of the ML object to tag.
resourceType - The type of the ML object to tag.TaggableResourceTypepublic String getResourceType()
The type of the ML object to tag.
TaggableResourceTypepublic AddTagsRequest withResourceType(String resourceType)
The type of the ML object to tag.
resourceType - The type of the ML object to tag.TaggableResourceTypepublic void setResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
resourceType - The type of the ML object to tag.TaggableResourceTypepublic AddTagsRequest withResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
resourceType - The type of the ML object to tag.TaggableResourceTypepublic String toString()
toString in class ObjectObject.toString()public AddTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.