public class CreateTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The request of the create tags action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
The resource ID of the request.
|
private SdkInternalList<Tag> |
tags
The tags of the request.
|
NOOP
Constructor and Description |
---|
CreateTagsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
The resource ID of the request.
|
java.util.List<Tag> |
getTags()
The tags of the request.
|
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
The resource ID of the request.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags of the request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTagsRequest |
withResourceId(java.lang.String resourceId)
The resource ID of the request.
|
CreateTagsRequest |
withTags(java.util.Collection<Tag> tags)
The tags of the request.
|
CreateTagsRequest |
withTags(Tag... tags)
The tags of the request.
|
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
The resource ID of the request.
private SdkInternalList<Tag> tags
The tags of the request.
public void setResourceId(java.lang.String resourceId)
The resource ID of the request.
resourceId
- The resource ID of the request.public java.lang.String getResourceId()
The resource ID of the request.
public CreateTagsRequest withResourceId(java.lang.String resourceId)
The resource ID of the request.
resourceId
- The resource ID of the request.public java.util.List<Tag> getTags()
The tags of the request.
public void setTags(java.util.Collection<Tag> tags)
The tags of the request.
tags
- The tags of the request.public CreateTagsRequest withTags(Tag... tags)
The tags of the request.
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 tags of the request.public CreateTagsRequest withTags(java.util.Collection<Tag> tags)
The tags of the request.
tags
- The tags of the request.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 CreateTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()