Class AddTagsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticloadbalancing.model.AddTagsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AddTagsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddTagsRequest
clone()
Creates a shallow clone of this request.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(String... loadBalancerNames)
The name of the load balancer.AddTagsRequest
withLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer.AddTagsRequest
withTags(Tag... tags)
The tags.AddTagsRequest
withTags(Collection<Tag> tags)
The tags.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
getLoadBalancerNames
public List<String> getLoadBalancerNames()
The name of the load balancer. You can specify one load balancer only.
- Returns:
- The name of the load balancer. You can specify one load balancer only.
-
setLoadBalancerNames
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer. You can specify one load balancer only.
- Parameters:
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.
-
withLoadBalancerNames
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)
orwithLoadBalancerNames(java.util.Collection)
if you want to override the existing values.- Parameters:
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLoadBalancerNames
public AddTagsRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
The name of the load balancer. You can specify one load balancer only.
- Parameters:
loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTags
public void setTags(Collection<Tag> tags)
The tags.
- Parameters:
tags
- The tags.
-
withTags
public AddTagsRequest withTags(Tag... tags)
The tags.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public AddTagsRequest withTags(Collection<Tag> tags)
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AddTagsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-