public class CreateDBSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable
CreateDBSecurityGroup operation
.
Creates a new DB Security Group. DB Security Groups control access to a DB Instance.
Constructor and Description |
---|
CreateDBSecurityGroupRequest()
Default constructor for a new CreateDBSecurityGroupRequest object.
|
CreateDBSecurityGroupRequest(String dBSecurityGroupName,
String dBSecurityGroupDescription)
Constructs a new CreateDBSecurityGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateDBSecurityGroupRequest()
public CreateDBSecurityGroupRequest(String dBSecurityGroupName, String dBSecurityGroupDescription)
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.public String getDBSecurityGroupName()
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mysecuritygroup
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mysecuritygroup
public void setDBSecurityGroupName(String dBSecurityGroupName)
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mysecuritygroup
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
public CreateDBSecurityGroupRequest withDBSecurityGroupName(String dBSecurityGroupName)
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.
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
public String getDBSecurityGroupDescription()
public void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
dBSecurityGroupDescription
- The description for the DB Security Group.public CreateDBSecurityGroupRequest withDBSecurityGroupDescription(String dBSecurityGroupDescription)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroupDescription
- The description for the DB Security Group.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.