public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable
AddTags operation.
Adds one or more tags for the specified load balancer. Each load balancer can have a maximum of 10 tags. Each tag consists of a key and an optional value.
Tag keys must be unique for each load balancer. If a tag with the same key is already associated with the load balancer, this action will update the value of the key.
For more information, see Tagging in the Elastic Load Balancing Developer Guide .
NOOP| Constructor and Description |
|---|
AddTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getLoadBalancerNames()
The name of the load balancer to tag.
|
List<Tag> |
getTags()
A list of tags for each load balancer.
|
int |
hashCode() |
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer to tag.
|
void |
setTags(Collection<Tag> tags)
A list of tags for each load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsRequest |
withLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer to tag.
|
AddTagsRequest |
withLoadBalancerNames(String... loadBalancerNames)
The name of the load balancer to tag.
|
AddTagsRequest |
withTags(Collection<Tag> tags)
A list of tags for each load balancer.
|
AddTagsRequest |
withTags(Tag... tags)
A list of tags for each load balancer.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic List<String> getLoadBalancerNames()
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
loadBalancerNames - The name of the load balancer to tag. You can specify a maximum of one
load balancer name.public AddTagsRequest withLoadBalancerNames(String... loadBalancerNames)
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - The name of the load balancer to tag. You can specify a maximum of one
load balancer name.public AddTagsRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - The name of the load balancer to tag. You can specify a maximum of one
load balancer name.public List<Tag> getTags()
Constraints:
Length: 1 -
public void setTags(Collection<Tag> tags)
Constraints:
Length: 1 -
tags - A list of tags for each load balancer.public AddTagsRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
tags - A list of tags for each load balancer.public AddTagsRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
tags - A list of tags for each load balancer.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.