|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.rds.model.CreateDBInstanceRequest
public class CreateDBInstanceRequest
Container for the parameters to the CreateDBInstance operation
.
This API creates a new DB instance.
AmazonRDS.createDBInstance(CreateDBInstanceRequest)
Constructor Summary | |
---|---|
CreateDBInstanceRequest()
Default constructor for a new CreateDBInstanceRequest object. |
|
CreateDBInstanceRequest(String dBInstanceIdentifier,
Integer allocatedStorage,
String dBInstanceClass,
String engine,
String masterUsername,
String masterUserPassword)
Constructs a new CreateDBInstanceRequest object. |
Method Summary | |
---|---|
Integer |
getAllocatedStorage()
The amount of storage (in gigabytes) to be initially allocated for the database instance. |
Boolean |
getAutoMinorVersionUpgrade()
Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. |
String |
getAvailabilityZone()
The EC2 Availability Zone that the database instance will be created in. |
Integer |
getBackupRetentionPeriod()
The number of days for which automated backups are retained. |
String |
getDBInstanceClass()
The compute and memory capacity of the DB Instance. |
String |
getDBInstanceIdentifier()
The DB Instance identifier. |
String |
getDBName()
The name of the database to create when the DB Instance is created. |
String |
getDBParameterGroupName()
The name of the database parameter group to associate with this DB instance. |
List<String> |
getDBSecurityGroups()
A list of DB Security Groups to associate with this DB Instance. |
String |
getEngine()
The name of the database engine to be used for this instance. |
String |
getEngineVersion()
The version number of the database engine to use. |
String |
getMasterUsername()
The name of master user for the client DB Instance. |
String |
getMasterUserPassword()
The password for the master DB Instance user. |
Boolean |
getMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment. |
Integer |
getPort()
The port number on which the database accepts connections. |
String |
getPreferredBackupWindow()
The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. |
String |
getPreferredMaintenanceWindow()
The weekly time range (in UTC) during which system maintenance can occur. |
Boolean |
isAutoMinorVersionUpgrade()
Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. |
Boolean |
isMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment. |
void |
setAllocatedStorage(Integer allocatedStorage)
The amount of storage (in gigabytes) to be initially allocated for the database instance. |
void |
setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. |
void |
setAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in. |
void |
setBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained. |
void |
setDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the DB Instance. |
void |
setDBInstanceIdentifier(String dBInstanceIdentifier)
The DB Instance identifier. |
void |
setDBName(String dBName)
The name of the database to create when the DB Instance is created. |
void |
setDBParameterGroupName(String dBParameterGroupName)
The name of the database parameter group to associate with this DB instance. |
void |
setDBSecurityGroups(Collection<String> dBSecurityGroups)
A list of DB Security Groups to associate with this DB Instance. |
void |
setEngine(String engine)
The name of the database engine to be used for this instance. |
void |
setEngineVersion(String engineVersion)
The version number of the database engine to use. |
void |
setMasterUsername(String masterUsername)
The name of master user for the client DB Instance. |
void |
setMasterUserPassword(String masterUserPassword)
The password for the master DB Instance user. |
void |
setMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment. |
void |
setPort(Integer port)
The port number on which the database accepts connections. |
void |
setPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. |
void |
setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range (in UTC) during which system maintenance can occur. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateDBInstanceRequest |
withAllocatedStorage(Integer allocatedStorage)
The amount of storage (in gigabytes) to be initially allocated for the database instance. |
CreateDBInstanceRequest |
withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. |
CreateDBInstanceRequest |
withAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in. |
CreateDBInstanceRequest |
withBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained. |
CreateDBInstanceRequest |
withDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the DB Instance. |
CreateDBInstanceRequest |
withDBInstanceIdentifier(String dBInstanceIdentifier)
The DB Instance identifier. |
CreateDBInstanceRequest |
withDBName(String dBName)
The name of the database to create when the DB Instance is created. |
CreateDBInstanceRequest |
withDBParameterGroupName(String dBParameterGroupName)
The name of the database parameter group to associate with this DB instance. |
CreateDBInstanceRequest |
withDBSecurityGroups(Collection<String> dBSecurityGroups)
A list of DB Security Groups to associate with this DB Instance. |
CreateDBInstanceRequest |
withDBSecurityGroups(String... dBSecurityGroups)
A list of DB Security Groups to associate with this DB Instance. |
CreateDBInstanceRequest |
withEngine(String engine)
The name of the database engine to be used for this instance. |
CreateDBInstanceRequest |
withEngineVersion(String engineVersion)
The version number of the database engine to use. |
CreateDBInstanceRequest |
withMasterUsername(String masterUsername)
The name of master user for the client DB Instance. |
CreateDBInstanceRequest |
withMasterUserPassword(String masterUserPassword)
The password for the master DB Instance user. |
CreateDBInstanceRequest |
withMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment. |
CreateDBInstanceRequest |
withPort(Integer port)
The port number on which the database accepts connections. |
CreateDBInstanceRequest |
withPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. |
CreateDBInstanceRequest |
withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range (in UTC) during which system maintenance can occur. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateDBInstanceRequest()
public CreateDBInstanceRequest(String dBInstanceIdentifier, Integer allocatedStorage, String dBInstanceClass, String engine, String masterUsername, String masterUserPassword)
dBInstanceIdentifier
- The DB Instance identifier. This parameter
is stored as a lowercase string.allocatedStorage
- The amount of storage (in gigabytes) to be
initially allocated for the database instance.dBInstanceClass
- The compute and memory capacity of the DB
Instance.engine
- The name of the database engine to be used for this
instance.masterUsername
- The name of master user for the client DB
Instance.masterUserPassword
- The password for the master DB Instance
user.Method Detail |
---|
public String getDBName()
public void setDBName(String dBName)
dBName
- The name of the database to create when the DB Instance is created. If
this parameter is not specified, no database is created in the DB
Instance.public CreateDBInstanceRequest withDBName(String dBName)
Returns a reference to this object so that method calls can be chained together.
dBName
- The name of the database to create when the DB Instance is created. If
this parameter is not specified, no database is created in the DB
Instance.
public String getDBInstanceIdentifier()
public void setDBInstanceIdentifier(String dBInstanceIdentifier)
dBInstanceIdentifier
- The DB Instance identifier. This parameter is stored as a lowercase
string.public CreateDBInstanceRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
Returns a reference to this object so that method calls can be chained together.
dBInstanceIdentifier
- The DB Instance identifier. This parameter is stored as a lowercase
string.
public Integer getAllocatedStorage()
public void setAllocatedStorage(Integer allocatedStorage)
allocatedStorage
- The amount of storage (in gigabytes) to be initially allocated for the
database instance.public CreateDBInstanceRequest withAllocatedStorage(Integer allocatedStorage)
Returns a reference to this object so that method calls can be chained together.
allocatedStorage
- The amount of storage (in gigabytes) to be initially allocated for the
database instance.
public String getDBInstanceClass()
public void setDBInstanceClass(String dBInstanceClass)
dBInstanceClass
- The compute and memory capacity of the DB Instance.public CreateDBInstanceRequest withDBInstanceClass(String dBInstanceClass)
Returns a reference to this object so that method calls can be chained together.
dBInstanceClass
- The compute and memory capacity of the DB Instance.
public String getEngine()
public void setEngine(String engine)
engine
- The name of the database engine to be used for this instance.public CreateDBInstanceRequest withEngine(String engine)
Returns a reference to this object so that method calls can be chained together.
engine
- The name of the database engine to be used for this instance.
public String getMasterUsername()
public void setMasterUsername(String masterUsername)
masterUsername
- The name of master user for the client DB Instance.public CreateDBInstanceRequest withMasterUsername(String masterUsername)
Returns a reference to this object so that method calls can be chained together.
masterUsername
- The name of master user for the client DB Instance.
public String getMasterUserPassword()
public void setMasterUserPassword(String masterUserPassword)
masterUserPassword
- The password for the master DB Instance user.public CreateDBInstanceRequest withMasterUserPassword(String masterUserPassword)
Returns a reference to this object so that method calls can be chained together.
masterUserPassword
- The password for the master DB Instance user.
public List<String> getDBSecurityGroups()
public void setDBSecurityGroups(Collection<String> dBSecurityGroups)
dBSecurityGroups
- A list of DB Security Groups to associate with this DB Instance.public CreateDBInstanceRequest withDBSecurityGroups(String... dBSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroups
- A list of DB Security Groups to associate with this DB Instance.
public CreateDBInstanceRequest withDBSecurityGroups(Collection<String> dBSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroups
- A list of DB Security Groups to associate with this DB Instance.
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The EC2 Availability Zone that the database instance will be created
in.public CreateDBInstanceRequest withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The EC2 Availability Zone that the database instance will be created
in.
public String getPreferredMaintenanceWindow()
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
preferredMaintenanceWindow
- The weekly time range (in UTC) during which system maintenance can
occur.public CreateDBInstanceRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
Returns a reference to this object so that method calls can be chained together.
preferredMaintenanceWindow
- The weekly time range (in UTC) during which system maintenance can
occur.
public String getDBParameterGroupName()
public void setDBParameterGroupName(String dBParameterGroupName)
dBParameterGroupName
- The name of the database parameter group to associate with this DB
instance. If this argument is omitted, the default DBParameterGroup
for the specified engine will be used.public CreateDBInstanceRequest withDBParameterGroupName(String dBParameterGroupName)
Returns a reference to this object so that method calls can be chained together.
dBParameterGroupName
- The name of the database parameter group to associate with this DB
instance. If this argument is omitted, the default DBParameterGroup
for the specified engine will be used.
public Integer getBackupRetentionPeriod()
public void setBackupRetentionPeriod(Integer backupRetentionPeriod)
backupRetentionPeriod
- The number of days for which automated backups are retained. Setting
this parameter to a positive number enables backups. Setting this
parameter to 0 disables automated backups.public CreateDBInstanceRequest withBackupRetentionPeriod(Integer backupRetentionPeriod)
Returns a reference to this object so that method calls can be chained together.
backupRetentionPeriod
- The number of days for which automated backups are retained. Setting
this parameter to a positive number enables backups. Setting this
parameter to 0 disables automated backups.
public String getPreferredBackupWindow()
public void setPreferredBackupWindow(String preferredBackupWindow)
preferredBackupWindow
- The daily time range during which automated backups are created if
automated backups are enabled, as determined by the
BackupRetentionPeriod.public CreateDBInstanceRequest withPreferredBackupWindow(String preferredBackupWindow)
Returns a reference to this object so that method calls can be chained together.
preferredBackupWindow
- The daily time range during which automated backups are created if
automated backups are enabled, as determined by the
BackupRetentionPeriod.
public Integer getPort()
public void setPort(Integer port)
port
- The port number on which the database accepts connections.public CreateDBInstanceRequest withPort(Integer port)
Returns a reference to this object so that method calls can be chained together.
port
- The port number on which the database accepts connections.
public Boolean isMultiAZ()
public void setMultiAZ(Boolean multiAZ)
multiAZ
- Specifies if the DB Instance is a Multi-AZ deployment.public CreateDBInstanceRequest withMultiAZ(Boolean multiAZ)
Returns a reference to this object so that method calls can be chained together.
multiAZ
- Specifies if the DB Instance is a Multi-AZ deployment.
public Boolean getMultiAZ()
public String getEngineVersion()
public void setEngineVersion(String engineVersion)
engineVersion
- The version number of the database engine to use.public CreateDBInstanceRequest withEngineVersion(String engineVersion)
Returns a reference to this object so that method calls can be chained together.
engineVersion
- The version number of the database engine to use.
public Boolean isAutoMinorVersionUpgrade()
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
autoMinorVersionUpgrade
- Indicates that minor engine upgrades will be applied automatically to
the DB Instance during the maintenance window.public CreateDBInstanceRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Returns a reference to this object so that method calls can be chained together.
autoMinorVersionUpgrade
- Indicates that minor engine upgrades will be applied automatically to
the DB Instance during the maintenance window.
public Boolean getAutoMinorVersionUpgrade()
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |