com.amazonaws.services.rds.model
Class CreateDBSecurityGroupRequest

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

public class CreateDBSecurityGroupRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateDBSecurityGroup operation.

Creates a new DB Security Group. DB Security Groups control access to a DB Instance.

See Also:
AmazonRDS.createDBSecurityGroup(CreateDBSecurityGroupRequest)

Constructor Summary
CreateDBSecurityGroupRequest()
          Default constructor for a new CreateDBSecurityGroupRequest object.
CreateDBSecurityGroupRequest(String dBSecurityGroupName, String dBSecurityGroupDescription)
          Constructs a new CreateDBSecurityGroupRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDBSecurityGroupDescription()
          The description for the DB Security Group.
 String getDBSecurityGroupName()
          The name for the DB Security Group.
 String getEC2VpcId()
          The Id of VPC.
 int hashCode()
           
 void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
          The description for the DB Security Group.
 void setDBSecurityGroupName(String dBSecurityGroupName)
          The name for the DB Security Group.
 void setEC2VpcId(String eC2VpcId)
          The Id of VPC.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDBSecurityGroupRequest withDBSecurityGroupDescription(String dBSecurityGroupDescription)
          The description for the DB Security Group.
 CreateDBSecurityGroupRequest withDBSecurityGroupName(String dBSecurityGroupName)
          The name for the DB Security Group.
 CreateDBSecurityGroupRequest withEC2VpcId(String eC2VpcId)
          The Id of VPC.
 
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

CreateDBSecurityGroupRequest

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


CreateDBSecurityGroupRequest

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

Parameters:
dBSecurityGroupName - The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup

dBSecurityGroupDescription - The description for the DB Security Group.
Method Detail

getDBSecurityGroupName

public String getDBSecurityGroupName()
The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup

Returns:
The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup


setDBSecurityGroupName

public void setDBSecurityGroupName(String dBSecurityGroupName)
The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup

Parameters:
dBSecurityGroupName - The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup


withDBSecurityGroupName

public CreateDBSecurityGroupRequest withDBSecurityGroupName(String dBSecurityGroupName)
The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup

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

Parameters:
dBSecurityGroupName - The name for the DB Security Group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".

Example: mysecuritygroup

Returns:
A reference to this updated object so that method calls can be chained together.

getDBSecurityGroupDescription

public String getDBSecurityGroupDescription()
The description for the DB Security Group.

Returns:
The description for the DB Security Group.

setDBSecurityGroupDescription

public void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
The description for the DB Security Group.

Parameters:
dBSecurityGroupDescription - The description for the DB Security Group.

withDBSecurityGroupDescription

public CreateDBSecurityGroupRequest withDBSecurityGroupDescription(String dBSecurityGroupDescription)
The description for the DB Security Group.

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

Parameters:
dBSecurityGroupDescription - The description for the DB Security Group.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2VpcId

public String getEC2VpcId()
The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.

Returns:
The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.

setEC2VpcId

public void setEC2VpcId(String eC2VpcId)
The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.

Parameters:
eC2VpcId - The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.

withEC2VpcId

public CreateDBSecurityGroupRequest withEC2VpcId(String eC2VpcId)
The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.

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

Parameters:
eC2VpcId - The Id of VPC. Indicates which VPC this DB Security Group should belong to. Must be specified to create a DB Security Group for a VPC; may not be specified otherwise.
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.