Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class CreateDBSecurityGroupRequest

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

public class CreateDBSecurityGroupRequest
extends AmazonWebServiceRequest
implements Serializable

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), Serialized Form

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.
 int hashCode()
           
 void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
          The description for the DB Security Group.
 void setDBSecurityGroupName(String dBSecurityGroupName)
          The name for the DB Security Group.
 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.
 
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.

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.