Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class RevokeDBSecurityGroupIngressRequest

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

public class RevokeDBSecurityGroupIngressRequest
extends AmazonWebServiceRequest

Container for the parameters to the RevokeDBSecurityGroupIngress operation.

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

See Also:
AmazonRDS.revokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest)

Constructor Summary
RevokeDBSecurityGroupIngressRequest()
          Default constructor for a new RevokeDBSecurityGroupIngressRequest object.
RevokeDBSecurityGroupIngressRequest(java.lang.String dBSecurityGroupName)
          Constructs a new RevokeDBSecurityGroupIngressRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCIDRIP()
          The IP range to revoke access from.
 java.lang.String getDBSecurityGroupName()
          The name of the DB Security Group to revoke ingress from.
 java.lang.String getEC2SecurityGroupId()
          The id of the EC2 Security Group to revoke access from.
 java.lang.String getEC2SecurityGroupName()
          The name of the EC2 Security Group to revoke access from.
 java.lang.String getEC2SecurityGroupOwnerId()
          The 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 revoke access from.
 void setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
          The name of the DB Security Group to revoke ingress from.
 void setEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
          The id of the EC2 Security Group to revoke access from.
 void setEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
          The name of the EC2 Security Group to revoke access from.
 void setEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
          The 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.
 RevokeDBSecurityGroupIngressRequest withCIDRIP(java.lang.String cIDRIP)
          The IP range to revoke access from.
 RevokeDBSecurityGroupIngressRequest withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
          The name of the DB Security Group to revoke ingress from.
 RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
          The id of the EC2 Security Group to revoke access from.
 RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
          The name of the EC2 Security Group to revoke access from.
 RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
          The 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

RevokeDBSecurityGroupIngressRequest

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


RevokeDBSecurityGroupIngressRequest

public RevokeDBSecurityGroupIngressRequest(java.lang.String dBSecurityGroupName)
Constructs a new RevokeDBSecurityGroupIngressRequest 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 revoke ingress from.
Method Detail

getDBSecurityGroupName

public java.lang.String getDBSecurityGroupName()
The name of the DB Security Group to revoke ingress from.

Returns:
The name of the DB Security Group to revoke ingress from.

setDBSecurityGroupName

public void setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
The name of the DB Security Group to revoke ingress from.

Parameters:
dBSecurityGroupName - The name of the DB Security Group to revoke ingress from.

withDBSecurityGroupName

public RevokeDBSecurityGroupIngressRequest withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
The name of the DB Security Group to revoke ingress from.

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

Parameters:
dBSecurityGroupName - The name of the DB Security Group to revoke ingress from.
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 revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

Returns:
The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

setCIDRIP

public void setCIDRIP(java.lang.String cIDRIP)
The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

Parameters:
cIDRIP - The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

withCIDRIP

public RevokeDBSecurityGroupIngressRequest withCIDRIP(java.lang.String cIDRIP)
The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

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

Parameters:
cIDRIP - The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroupName

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

Returns:
The name of the EC2 Security Group to revoke access from. 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)
The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Parameters:
eC2SecurityGroupName - The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

withEC2SecurityGroupName

public RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupName(java.lang.String eC2SecurityGroupName)
The name of the EC2 Security Group to revoke access from. 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 - The name of the EC2 Security Group to revoke access from. 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()
The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Returns:
The id of the EC2 Security Group to revoke access from. 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)
The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Parameters:
eC2SecurityGroupId - The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

withEC2SecurityGroupId

public RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupId(java.lang.String eC2SecurityGroupId)
The id of the EC2 Security Group to revoke access from. 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 - The id of the EC2 Security Group to revoke access from. 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()
The 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:
The 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)
The 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 - The 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 RevokeDBSecurityGroupIngressRequest withEC2SecurityGroupOwnerId(java.lang.String eC2SecurityGroupOwnerId)
The 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 - The 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.