@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddTagsRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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.TaggableResourceType
public String getResourceType()
The type of the ML object to tag.
TaggableResourceType
public AddTagsRequest withResourceType(String resourceType)
The type of the ML object to tag.
resourceType
- The type of the ML object to tag.TaggableResourceType
public void setResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
resourceType
- The type of the ML object to tag.TaggableResourceType
public AddTagsRequest withResourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
resourceType
- The type of the ML object to tag.TaggableResourceType
public String toString()
toString
in class Object
Object.toString()
public AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()