public class CreateDBSubnetGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
NOOP
Constructor and Description |
---|
CreateDBSubnetGroupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDBSubnetGroupRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
List<Tag> |
getTags()
A list of tags.
|
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.
|
void |
setTags(Collection<Tag> tags)
A list of tags.
|
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.
|
CreateDBSubnetGroupRequest |
withTags(Collection<Tag> tags)
A list of tags.
|
CreateDBSubnetGroupRequest |
withTags(Tag... tags)
A list of tags.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getDBSubnetGroupName()
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mySubnetgroup
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mySubnetgroup
public void setDBSubnetGroupName(String dBSubnetGroupName)
Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
Example:
mySubnetgroup
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
public CreateDBSubnetGroupRequest withDBSubnetGroupName(String dBSubnetGroupName)
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.
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
public String getDBSubnetGroupDescription()
public void setDBSubnetGroupDescription(String dBSubnetGroupDescription)
dBSubnetGroupDescription
- The description for the DB subnet group.public CreateDBSubnetGroupRequest withDBSubnetGroupDescription(String dBSubnetGroupDescription)
Returns a reference to this object so that method calls can be chained together.
dBSubnetGroupDescription
- The description for the DB subnet group.public List<String> getSubnetIds()
public void setSubnetIds(Collection<String> subnetIds)
subnetIds
- The EC2 Subnet IDs for the DB subnet group.public CreateDBSubnetGroupRequest withSubnetIds(String... subnetIds)
NOTE: This method appends the values to the existing list (if
any). Use setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
subnetIds
- The EC2 Subnet IDs for the DB subnet group.public CreateDBSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
Returns a reference to this object so that method calls can be chained together.
subnetIds
- The EC2 Subnet IDs for the DB subnet group.public void setTags(Collection<Tag> tags)
tags
- A list of tags.public CreateDBSubnetGroupRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public CreateDBSubnetGroupRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public String toString()
toString
in class Object
Object.toString()
public CreateDBSubnetGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.