@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for AddTags.
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) |
List<String> |
getLoadBalancerNames()
The name of the load balancer.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
AddTagsRequest |
withLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer.
|
AddTagsRequest |
withLoadBalancerNames(String... loadBalancerNames)
The name of the load balancer.
|
AddTagsRequest |
withTags(Collection<Tag> tags)
The tags.
|
AddTagsRequest |
withTags(Tag... tags)
The 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<String> getLoadBalancerNames()
The name of the load balancer. You can specify one load balancer only.
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer. You can specify one load balancer only.
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.public AddTagsRequest withLoadBalancerNames(String... loadBalancerNames)
The name of the load balancer. You can specify one load balancer only.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancerNames(java.util.Collection)
or withLoadBalancerNames(java.util.Collection)
if
you want to override the existing values.
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.public AddTagsRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer. You can specify one load balancer only.
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.public void setTags(Collection<Tag> tags)
The tags.
tags
- The tags.public AddTagsRequest withTags(Tag... tags)
The tags.
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.public AddTagsRequest withTags(Collection<Tag> tags)
The tags.
tags
- The tags.public String toString()
toString
in class Object
Object.toString()
public AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()