public class ApplySecurityGroupsToLoadBalancerRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
loadBalancerName
The name of the load balancer.
|
private SdkInternalList<java.lang.String> |
securityGroups
The IDs of the security groups to associate with the load balancer.
|
NOOP
Constructor and Description |
---|
ApplySecurityGroupsToLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
ApplySecurityGroupsToLoadBalancerRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.util.List<java.lang.String> |
getSecurityGroups()
The IDs of the security groups to associate with the load balancer.
|
int |
hashCode() |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ApplySecurityGroupsToLoadBalancerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to associate with the load balancer.
|
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
private java.lang.String loadBalancerName
The name of the load balancer.
private SdkInternalList<java.lang.String> securityGroups
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
public ApplySecurityGroupsToLoadBalancerRequest()
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public java.lang.String getLoadBalancerName()
The name of the load balancer.
public ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public java.util.List<java.lang.String> getSecurityGroups()
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
securityGroups
- The IDs of the security groups to associate with the load
balancer. Note that you cannot specify the name of the security
group.public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroups(java.util.Collection)
or
withSecurityGroups(java.util.Collection)
if you want to override
the existing values.
securityGroups
- The IDs of the security groups to associate with the load
balancer. Note that you cannot specify the name of the security
group.public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
securityGroups
- The IDs of the security groups to associate with the load
balancer. Note that you cannot specify the name of the security
group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ApplySecurityGroupsToLoadBalancerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()