Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class AuthorizeCacheSecurityGroupIngressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.AuthorizeCacheSecurityGroupIngressRequest

public class AuthorizeCacheSecurityGroupIngressRequest
extends AmazonWebServiceRequest

Container for the parameters to the AuthorizeCacheSecurityGroupIngress operation.

Authorizes ingress to a CacheSecurityGroup using EC2 Security Groups as authorization (therefore the application using the cache must be running on EC2 clusters). This API requires the following parameters: EC2SecurityGroupName and EC2SecurityGroupOwnerId.

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

See Also:
AmazonElastiCache.authorizeCacheSecurityGroupIngress(AuthorizeCacheSecurityGroupIngressRequest)

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 name of the Cache Security Group to authorize.
 String getEC2SecurityGroupName()
          Name of the EC2 Security Group to include in the authorization.
 String getEC2SecurityGroupOwnerId()
          AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter.
 int hashCode()
           
 void setCacheSecurityGroupName(String cacheSecurityGroupName)
          The name of the Cache Security Group to authorize.
 void setEC2SecurityGroupName(String eC2SecurityGroupName)
          Name of the EC2 Security Group to include in the authorization.
 void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AuthorizeCacheSecurityGroupIngressRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
          The name of the Cache Security Group to authorize.
 AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
          Name of the EC2 Security Group to include in the authorization.
 AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
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 name of the Cache Security Group to authorize.
eC2SecurityGroupName - Name of the EC2 Security Group to include in the authorization.
eC2SecurityGroupOwnerId - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.
Method Detail

getCacheSecurityGroupName

public String getCacheSecurityGroupName()
The name of the Cache Security Group to authorize.

Returns:
The name of the Cache Security Group to authorize.

setCacheSecurityGroupName

public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the Cache Security Group to authorize.

Parameters:
cacheSecurityGroupName - The name of the Cache Security Group to authorize.

withCacheSecurityGroupName

public AuthorizeCacheSecurityGroupIngressRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the Cache Security Group to authorize.

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

Parameters:
cacheSecurityGroupName - The name of the Cache Security Group to authorize.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupName

public String getEC2SecurityGroupName()
Name of the EC2 Security Group to include in the authorization.

Returns:
Name of the EC2 Security Group to include in the authorization.

setEC2SecurityGroupName

public void setEC2SecurityGroupName(String eC2SecurityGroupName)
Name of the EC2 Security Group to include in the authorization.

Parameters:
eC2SecurityGroupName - Name of the EC2 Security Group to include in the authorization.

withEC2SecurityGroupName

public AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
Name of the EC2 Security Group to include in the authorization.

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

Parameters:
eC2SecurityGroupName - Name of the EC2 Security Group to include in the authorization.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupOwnerId

public String getEC2SecurityGroupOwnerId()
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Returns:
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

setEC2SecurityGroupOwnerId

public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Parameters:
eC2SecurityGroupOwnerId - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

withEC2SecurityGroupOwnerId

public AuthorizeCacheSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

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

Parameters:
eC2SecurityGroupOwnerId - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.