public class AddTagsToOnPremisesInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of, and adds tags to, an on-premises instance operation.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
instanceNames
The names of the on-premises instances to which to add tags.
|
private SdkInternalList<Tag> |
tags
The tag key-value pairs to add to the on-premises instances.
|
NOOP
Constructor and Description |
---|
AddTagsToOnPremisesInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsToOnPremisesInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getInstanceNames()
The names of the on-premises instances to which to add tags.
|
java.util.List<Tag> |
getTags()
The tag key-value pairs to add to the on-premises instances.
|
int |
hashCode() |
void |
setInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The names of the on-premises instances to which to add tags.
|
void |
setTags(java.util.Collection<Tag> tags)
The tag key-value pairs to add to the on-premises instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToOnPremisesInstancesRequest |
withInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The names of the on-premises instances to which to add tags.
|
AddTagsToOnPremisesInstancesRequest |
withInstanceNames(java.lang.String... instanceNames)
The names of the on-premises instances to which to add tags.
|
AddTagsToOnPremisesInstancesRequest |
withTags(java.util.Collection<Tag> tags)
The tag key-value pairs to add to the on-premises instances.
|
AddTagsToOnPremisesInstancesRequest |
withTags(Tag... tags)
The tag key-value pairs to add to the on-premises instances.
|
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 SdkInternalList<Tag> tags
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
private SdkInternalList<java.lang.String> instanceNames
The names of the on-premises instances to which to add tags.
public java.util.List<Tag> getTags()
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
public void setTags(java.util.Collection<Tag> tags)
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
tags
- The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
public AddTagsToOnPremisesInstancesRequest withTags(Tag... tags)
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
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 tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
public AddTagsToOnPremisesInstancesRequest withTags(java.util.Collection<Tag> tags)
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
tags
- The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
public java.util.List<java.lang.String> getInstanceNames()
The names of the on-premises instances to which to add tags.
public void setInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The names of the on-premises instances to which to add tags.
instanceNames
- The names of the on-premises instances to which to add tags.public AddTagsToOnPremisesInstancesRequest withInstanceNames(java.lang.String... instanceNames)
The names of the on-premises instances to which to add tags.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceNames(java.util.Collection)
or
withInstanceNames(java.util.Collection)
if you want to override
the existing values.
instanceNames
- The names of the on-premises instances to which to add tags.public AddTagsToOnPremisesInstancesRequest withInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The names of the on-premises instances to which to add tags.
instanceNames
- The names of the on-premises instances to which to add tags.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 AddTagsToOnPremisesInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()