Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.redshift.model
Class AuthorizeClusterSecurityGroupIngressRequest

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

public class AuthorizeClusterSecurityGroupIngressRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AuthorizeClusterSecurityGroupIngress operation.

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR) IP address range or an EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

NOTE: The EC2 security group must be defined in the AWS region where the cluster resides.

For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing .

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Management Guide .

See Also:
AmazonRedshift.authorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest), Serialized Form

Constructor Summary
AuthorizeClusterSecurityGroupIngressRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCIDRIP()
          The IP range to be added the Amazon Redshift security group.
 String getClusterSecurityGroupName()
          The name of the security group to which the ingress rule is added.
 String getEC2SecurityGroupName()
          The EC2 security group to be added the Amazon Redshift security group.
 String getEC2SecurityGroupOwnerId()
          The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.
 int hashCode()
           
 void setCIDRIP(String cIDRIP)
          The IP range to be added the Amazon Redshift security group.
 void setClusterSecurityGroupName(String clusterSecurityGroupName)
          The name of the security group to which the ingress rule is added.
 void setEC2SecurityGroupName(String eC2SecurityGroupName)
          The EC2 security group to be added the Amazon Redshift security group.
 void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AuthorizeClusterSecurityGroupIngressRequest withCIDRIP(String cIDRIP)
          The IP range to be added the Amazon Redshift security group.
 AuthorizeClusterSecurityGroupIngressRequest withClusterSecurityGroupName(String clusterSecurityGroupName)
          The name of the security group to which the ingress rule is added.
 AuthorizeClusterSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
          The EC2 security group to be added the Amazon Redshift security group.
 AuthorizeClusterSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
          The AWS account number of the owner of the security group specified by 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

AuthorizeClusterSecurityGroupIngressRequest

public AuthorizeClusterSecurityGroupIngressRequest()
Method Detail

getClusterSecurityGroupName

public String getClusterSecurityGroupName()
The name of the security group to which the ingress rule is added.

Returns:
The name of the security group to which the ingress rule is added.

setClusterSecurityGroupName

public void setClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the security group to which the ingress rule is added.

Parameters:
clusterSecurityGroupName - The name of the security group to which the ingress rule is added.

withClusterSecurityGroupName

public AuthorizeClusterSecurityGroupIngressRequest withClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the security group to which the ingress rule is added.

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

Parameters:
clusterSecurityGroupName - The name of the security group to which the ingress rule is added.
Returns:
A reference to this updated object so that method calls can be chained together.

getCIDRIP

public String getCIDRIP()
The IP range to be added the Amazon Redshift security group.

Returns:
The IP range to be added the Amazon Redshift security group.

setCIDRIP

public void setCIDRIP(String cIDRIP)
The IP range to be added the Amazon Redshift security group.

Parameters:
cIDRIP - The IP range to be added the Amazon Redshift security group.

withCIDRIP

public AuthorizeClusterSecurityGroupIngressRequest withCIDRIP(String cIDRIP)
The IP range to be added the Amazon Redshift security group.

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

Parameters:
cIDRIP - The IP range to be added the Amazon Redshift security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupName

public String getEC2SecurityGroupName()
The EC2 security group to be added the Amazon Redshift security group.

Returns:
The EC2 security group to be added the Amazon Redshift security group.

setEC2SecurityGroupName

public void setEC2SecurityGroupName(String eC2SecurityGroupName)
The EC2 security group to be added the Amazon Redshift security group.

Parameters:
eC2SecurityGroupName - The EC2 security group to be added the Amazon Redshift security group.

withEC2SecurityGroupName

public AuthorizeClusterSecurityGroupIngressRequest withEC2SecurityGroupName(String eC2SecurityGroupName)
The EC2 security group to be added the Amazon Redshift security group.

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

Parameters:
eC2SecurityGroupName - The EC2 security group to be added the Amazon Redshift 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 owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Example: 111122223333

Returns:
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Example: 111122223333


setEC2SecurityGroupOwnerId

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

Example: 111122223333

Parameters:
eC2SecurityGroupOwnerId - The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Example: 111122223333


withEC2SecurityGroupOwnerId

public AuthorizeClusterSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Example: 111122223333

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

Parameters:
eC2SecurityGroupOwnerId - The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

Example: 111122223333

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.