@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddTagsToOnPremisesInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of, and adds tags to, an on-premises instance operation.
NOOP
Constructor and Description |
---|
AddTagsToOnPremisesInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsToOnPremisesInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getInstanceNames()
The names of the on-premises instances to which to add tags.
|
List<Tag> |
getTags()
The tag key-value pairs to add to the on-premises instances.
|
int |
hashCode() |
void |
setInstanceNames(Collection<String> instanceNames)
The names of the on-premises instances to which to add tags.
|
void |
setTags(Collection<Tag> tags)
The tag key-value pairs to add to the on-premises instances.
|
String |
toString()
Returns a string representation of this object.
|
AddTagsToOnPremisesInstancesRequest |
withInstanceNames(Collection<String> instanceNames)
The names of the on-premises instances to which to add tags.
|
AddTagsToOnPremisesInstancesRequest |
withInstanceNames(String... instanceNames)
The names of the on-premises instances to which to add tags.
|
AddTagsToOnPremisesInstancesRequest |
withTags(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.
|
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 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(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(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 List<String> getInstanceNames()
The names of the on-premises instances to which to add tags.
public void setInstanceNames(Collection<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(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(Collection<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 String toString()
toString
in class Object
Object.toString()
public AddTagsToOnPremisesInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()