Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class CreateDBSubnetGroupRequest

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

public class CreateDBSubnetGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateDBSubnetGroup operation.

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

See Also:
AmazonRDS.createDBSubnetGroup(CreateDBSubnetGroupRequest), Serialized Form

Constructor Summary
CreateDBSubnetGroupRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDBSubnetGroupDescription()
          The description for the DB Subnet Group.
 String getDBSubnetGroupName()
          The name for the DB Subnet Group.
 List<String> getSubnetIds()
          The EC2 Subnet IDs for the DB Subnet Group.
 int hashCode()
           
 void setDBSubnetGroupDescription(String dBSubnetGroupDescription)
          The description for the DB Subnet Group.
 void setDBSubnetGroupName(String dBSubnetGroupName)
          The name for the DB Subnet Group.
 void setSubnetIds(Collection<String> subnetIds)
          The EC2 Subnet IDs for the DB Subnet Group.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDBSubnetGroupRequest withDBSubnetGroupDescription(String dBSubnetGroupDescription)
          The description for the DB Subnet Group.
 CreateDBSubnetGroupRequest withDBSubnetGroupName(String dBSubnetGroupName)
          The name for the DB Subnet Group.
 CreateDBSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
          The EC2 Subnet IDs for the DB Subnet Group.
 CreateDBSubnetGroupRequest withSubnetIds(String... subnetIds)
          The EC2 Subnet IDs for the DB Subnet 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

CreateDBSubnetGroupRequest

public CreateDBSubnetGroupRequest()
Method Detail

getDBSubnetGroupName

public String getDBSubnetGroupName()
The name for the DB Subnet 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: mySubnetgroup

Returns:
The name for the DB Subnet 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: mySubnetgroup


setDBSubnetGroupName

public void setDBSubnetGroupName(String dBSubnetGroupName)
The name for the DB Subnet 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: mySubnetgroup

Parameters:
dBSubnetGroupName - The name for the DB Subnet 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: mySubnetgroup


withDBSubnetGroupName

public CreateDBSubnetGroupRequest withDBSubnetGroupName(String dBSubnetGroupName)
The name for the DB Subnet 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: mySubnetgroup

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

Parameters:
dBSubnetGroupName - The name for the DB Subnet 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: mySubnetgroup

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

getDBSubnetGroupDescription

public String getDBSubnetGroupDescription()
The description for the DB Subnet Group.

Returns:
The description for the DB Subnet Group.

setDBSubnetGroupDescription

public void setDBSubnetGroupDescription(String dBSubnetGroupDescription)
The description for the DB Subnet Group.

Parameters:
dBSubnetGroupDescription - The description for the DB Subnet Group.

withDBSubnetGroupDescription

public CreateDBSubnetGroupRequest withDBSubnetGroupDescription(String dBSubnetGroupDescription)
The description for the DB Subnet Group.

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

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

getSubnetIds

public List<String> getSubnetIds()
The EC2 Subnet IDs for the DB Subnet Group.

Returns:
The EC2 Subnet IDs for the DB Subnet Group.

setSubnetIds

public void setSubnetIds(Collection<String> subnetIds)
The EC2 Subnet IDs for the DB Subnet Group.

Parameters:
subnetIds - The EC2 Subnet IDs for the DB Subnet Group.

withSubnetIds

public CreateDBSubnetGroupRequest withSubnetIds(String... subnetIds)
The EC2 Subnet IDs for the DB Subnet Group.

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

Parameters:
subnetIds - The EC2 Subnet IDs for the DB Subnet Group.
Returns:
A reference to this updated object so that method calls can be chained together.

withSubnetIds

public CreateDBSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
The EC2 Subnet IDs for the DB Subnet Group.

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

Parameters:
subnetIds - The EC2 Subnet IDs for the DB Subnet 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.