public class AddTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the parameters for AddTags.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
pipelineId
The ID of the pipeline.
|
private SdkInternalList<Tag> |
tags
The tags to add, as key/value pairs.
|
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 |
getPipelineId()
The ID of the pipeline.
|
java.util.List<Tag> |
getTags()
The tags to add, as key/value pairs.
|
int |
hashCode() |
void |
setPipelineId(java.lang.String pipelineId)
The ID of the pipeline.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags to add, as key/value pairs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withPipelineId(java.lang.String pipelineId)
The ID of the pipeline.
|
AddTagsRequest |
withTags(java.util.Collection<Tag> tags)
The tags to add, as key/value pairs.
|
AddTagsRequest |
withTags(Tag... tags)
The tags to add, as key/value pairs.
|
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 pipelineId
The ID of the pipeline.
private SdkInternalList<Tag> tags
The tags to add, as key/value pairs.
public void setPipelineId(java.lang.String pipelineId)
The ID of the pipeline.
pipelineId
- The ID of the pipeline.public java.lang.String getPipelineId()
The ID of the pipeline.
public AddTagsRequest withPipelineId(java.lang.String pipelineId)
The ID of the pipeline.
pipelineId
- The ID of the pipeline.public java.util.List<Tag> getTags()
The tags to add, as key/value pairs.
public void setTags(java.util.Collection<Tag> tags)
The tags to add, as key/value pairs.
tags
- The tags to add, as key/value pairs.public AddTagsRequest withTags(Tag... tags)
The tags to add, as key/value pairs.
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 to add, as key/value pairs.public AddTagsRequest withTags(java.util.Collection<Tag> tags)
The tags to add, as key/value pairs.
tags
- The tags to add, as key/value pairs.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()