public class PromoteReadReplicaRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PromoteReadReplica operation
.
Promotes a Read Replica DB instance to a standalone DB instance.
NOTE: We recommend that you enable automated backups on your Read Replica before promoting the Read Replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.
NOOP
Constructor and Description |
---|
PromoteReadReplicaRequest() |
Modifier and Type | Method and Description |
---|---|
PromoteReadReplicaRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Integer |
getBackupRetentionPeriod()
The number of days to retain automated backups.
|
String |
getDBInstanceIdentifier()
The DB instance identifier.
|
String |
getPreferredBackupWindow()
The daily time range during which automated backups are created if
automated backups are enabled, using the
BackupRetentionPeriod parameter. |
int |
hashCode() |
void |
setBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days to retain automated backups.
|
void |
setDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier.
|
void |
setPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if
automated backups are enabled, using the
BackupRetentionPeriod parameter. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PromoteReadReplicaRequest |
withBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days to retain automated backups.
|
PromoteReadReplicaRequest |
withDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier.
|
PromoteReadReplicaRequest |
withPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if
automated backups are enabled, using the
BackupRetentionPeriod parameter. |
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getDBInstanceIdentifier()
Constraints:
Example:
Constraints:
Example:
public void setDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
Example:
dBInstanceIdentifier
- The DB instance identifier. This value is stored as a lowercase
string. Constraints:
Example:
public PromoteReadReplicaRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
Example:
Returns a reference to this object so that method calls can be chained together.
dBInstanceIdentifier
- The DB instance identifier. This value is stored as a lowercase
string. Constraints:
Example:
public Integer getBackupRetentionPeriod()
Default: 1
Constraints:
Default: 1
Constraints:
public void setBackupRetentionPeriod(Integer backupRetentionPeriod)
Default: 1
Constraints:
backupRetentionPeriod
- The number of days to retain automated backups. Setting this parameter
to a positive number enables backups. Setting this parameter to 0
disables automated backups. Default: 1
Constraints:
public PromoteReadReplicaRequest withBackupRetentionPeriod(Integer backupRetentionPeriod)
Default: 1
Constraints:
Returns a reference to this object so that method calls can be chained together.
backupRetentionPeriod
- The number of days to retain automated backups. Setting this parameter
to a positive number enables backups. Setting this parameter to 0
disables automated backups. Default: 1
Constraints:
public String getPreferredBackupWindow()
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
public void setPreferredBackupWindow(String preferredBackupWindow)
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
preferredBackupWindow
- The daily time range during which automated backups are created if
automated backups are enabled, using the
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
public PromoteReadReplicaRequest withPreferredBackupWindow(String preferredBackupWindow)
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
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, using the
BackupRetentionPeriod
parameter. Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.
Constraints: Must
be in the format hh24:mi-hh24:mi
. Times should be
Universal Time Coordinated (UTC). Must not conflict with the preferred
maintenance window. Must be at least 30 minutes.
public String toString()
toString
in class Object
Object.toString()
public PromoteReadReplicaRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.