Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class AuthorizeDBSecurityGroupIngressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.rds.model.AuthorizeDBSecurityGroupIngressRequest

public class AuthorizeDBSecurityGroupIngressRequest
extends AmazonWebServiceRequest

Container for the parameters to the AuthorizeDBSecurityGroupIngress operation.

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

NOTE: You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB Instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial .

See Also:
AmazonRDS.authorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest)

Constructor Summary
AuthorizeDBSecurityGroupIngressRequest()
          Default constructor for a new AuthorizeDBSecurityGroupIngressRequest object.
AuthorizeDBSecurityGroupIngressRequest(java.lang.String dBSecurityGroupName)
          Constructs a new AuthorizeDBSecurityGroupIngressRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCIDRIP()
          The IP range to authorize.
 java.lang.String getDBSecurityGroupName()
          The name of the DB Security Group to add authorization to.
 java.lang.String getEC2SecurityGroupId()
          Id of the EC2 Security Group to authorize.
 java.lang.String getEC2SecurityGroupName()
          Name of the EC2 Security Group to authorize.
 java.lang.String getEC2SecurityGroupOwnerId()
          AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter.
 int hashCode()
           
 void setCIDRIP(java.lang.String cIDRIP)
          The IP range to authorize.
 void setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
          The name of the DB Security Group to add authorization to.
 void setEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
          Id of the EC2 Security Group to authorize.
 void setEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
          Name of the EC2 Security Group to authorize.
 void setEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
          AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AuthorizeDBSecurityGroupIngressRequest withCIDRIP(java.lang.String cIDRIP)
          The IP range to authorize.
 AuthorizeDBSecurityGroupIngressRequest withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
          The name of the DB Security Group to add authorization to.
 AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
          Id of the EC2 Security Group to authorize.
 AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
          Name of the EC2 Security Group to authorize.
 AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
          AWS Account Number of the owner of the EC2 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

AuthorizeDBSecurityGroupIngressRequest

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


AuthorizeDBSecurityGroupIngressRequest

public AuthorizeDBSecurityGroupIngressRequest(java.lang.String dBSecurityGroupName)
Constructs a new AuthorizeDBSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dBSecurityGroupName - The name of the DB Security Group to add authorization to.
Method Detail

getDBSecurityGroupName

public java.lang.String getDBSecurityGroupName()
The name of the DB Security Group to add authorization to.

Returns:
The name of the DB Security Group to add authorization to.

setDBSecurityGroupName

public void setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
The name of the DB Security Group to add authorization to.

Parameters:
dBSecurityGroupName - The name of the DB Security Group to add authorization to.

withDBSecurityGroupName

public AuthorizeDBSecurityGroupIngressRequest withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
The name of the DB Security Group to add authorization to.

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

Parameters:
dBSecurityGroupName - The name of the DB Security Group to add authorization to.
Returns:
A reference to this updated object so that method calls can be chained together.

getCIDRIP

public java.lang.String getCIDRIP()
The IP range to authorize.

Returns:
The IP range to authorize.

setCIDRIP

public void setCIDRIP(java.lang.String cIDRIP)
The IP range to authorize.

Parameters:
cIDRIP - The IP range to authorize.

withCIDRIP

public AuthorizeDBSecurityGroupIngressRequest withCIDRIP(java.lang.String cIDRIP)
The IP range to authorize.

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

Parameters:
cIDRIP - The IP range to authorize.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupName

public java.lang.String getEC2SecurityGroupName()
Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Returns:
Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

setEC2SecurityGroupName

public void setEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Parameters:
eC2SecurityGroupName - Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

withEC2SecurityGroupName

public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

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

Parameters:
eC2SecurityGroupName - Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupId

public java.lang.String getEC2SecurityGroupId()
Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Returns:
Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

setEC2SecurityGroupId

public void setEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Parameters:
eC2SecurityGroupId - Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

withEC2SecurityGroupId

public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

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

Parameters:
eC2SecurityGroupId - Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupOwnerId

public java.lang.String getEC2SecurityGroupOwnerId()
AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Returns:
AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

setEC2SecurityGroupOwnerId

public void setEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Parameters:
eC2SecurityGroupOwnerId - AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

withEC2SecurityGroupOwnerId

public AuthorizeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

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

Parameters:
eC2SecurityGroupOwnerId - AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.