com.amazonaws.services.elasticache.model
Class AuthorizeCacheSecurityGroupIngressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.AuthorizeCacheSecurityGroupIngressRequest
All Implemented Interfaces:
Serializable

public class AuthorizeCacheSecurityGroupIngressRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AuthorizeCacheSecurityGroupIngress operation.

The AuthorizeCacheSecurityGroupIngress operation allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2, and Amazon EC2 security groups are used as the authorization mechanism.

NOTE: You cannot authorize ingress from an Amazon EC2 security group in one Region to an ElastiCache cluster in another Region.

See Also:
AmazonElastiCache.authorizeCacheSecurityGroupIngress(AuthorizeCacheSecurityGroupIngressRequest), Serialized Form

Constructor Summary
AuthorizeCacheSecurityGroupIngressRequest()
          Default constructor for a new AuthorizeCacheSecurityGroupIngressRequest object.
AuthorizeCacheSecurityGroupIngressRequest(String cacheSecurityGroupName, String eC2SecurityGroupName, String eC2SecurityGroupOwnerId)
          Constructs a new AuthorizeCacheSecurityGroupIngressRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheSecurityGroupName()
          The cache security group which will allow network ingress.
 String getEC2SecurityGroupName()
          The Amazon EC2 security group to be authorized for ingress to the cache security group.
 String getEC2SecurityGroupOwnerId()
          The AWS account number of the Amazon EC2 security group owner.
 int hashCode()
           
 void setCacheSecurityGroupName(String cacheSecurityGroupName)
          The cache security group which will allow network ingress.
 void setEC2SecurityGroupName(String eC2SecurityGroupName)
          The Amazon EC2 security group to be authorized for ingress to the cache security group.
 void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          The AWS account number of the Amazon EC2 security group owner.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AuthorizeCacheSecurityGroupIngressRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
          The cache security group which will allow network ingress.
 AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
          The Amazon EC2 security group to be authorized for ingress to the cache security group.
 AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          The AWS account number of the Amazon EC2 security group owner.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorizeCacheSecurityGroupIngressRequest

public AuthorizeCacheSecurityGroupIngressRequest()
Default constructor for a new AuthorizeCacheSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


AuthorizeCacheSecurityGroupIngressRequest

public AuthorizeCacheSecurityGroupIngressRequest(String cacheSecurityGroupName,
                                                 String eC2SecurityGroupName,
                                                 String eC2SecurityGroupOwnerId)
Constructs a new AuthorizeCacheSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
cacheSecurityGroupName - The cache security group which will allow network ingress.
eC2SecurityGroupName - The Amazon EC2 security group to be authorized for ingress to the cache security group.
eC2SecurityGroupOwnerId - The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.
Method Detail

getCacheSecurityGroupName

public String getCacheSecurityGroupName()
The cache security group which will allow network ingress.

Returns:
The cache security group which will allow network ingress.

setCacheSecurityGroupName

public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The cache security group which will allow network ingress.

Parameters:
cacheSecurityGroupName - The cache security group which will allow network ingress.

withCacheSecurityGroupName

public AuthorizeCacheSecurityGroupIngressRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
The cache security group which will allow network ingress.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheSecurityGroupName - The cache security group which will allow network ingress.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupName

public String getEC2SecurityGroupName()
The Amazon EC2 security group to be authorized for ingress to the cache security group.

Returns:
The Amazon EC2 security group to be authorized for ingress to the cache security group.

setEC2SecurityGroupName

public void setEC2SecurityGroupName(String eC2SecurityGroupName)
The Amazon EC2 security group to be authorized for ingress to the cache security group.

Parameters:
eC2SecurityGroupName - The Amazon EC2 security group to be authorized for ingress to the cache security group.

withEC2SecurityGroupName

public AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
The Amazon EC2 security group to be authorized for ingress to the cache security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
eC2SecurityGroupName - The Amazon EC2 security group to be authorized for ingress to the cache security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupOwnerId

public String getEC2SecurityGroupOwnerId()
The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

Returns:
The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

setEC2SecurityGroupOwnerId

public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

Parameters:
eC2SecurityGroupOwnerId - The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

withEC2SecurityGroupOwnerId

public AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
eC2SecurityGroupOwnerId - The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.