public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable
Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.
Each tag consists of a key and an optional value. If a tag with the same key
is already associated with the load balancer, AddTags
updates
its value.
For more information, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
Constructor and Description |
---|
AddTagsRequest() |
Modifier and Type | Method and Description |
---|---|
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; useful for testing and
debugging.
|
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getLoadBalancerNames()
The name of the load balancer. You can specify one load balancer only.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
tags
- The tags.
public AddTagsRequest withTags(Collection<Tag> tags)
The tags.
Returns a reference to this object so that method calls can be chained together.
tags
- The tags.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.