public class PromoteReadReplicaRequest extends AmazonWebServiceRequest implements Serializable
PromoteReadReplica operation
.
Promotes a Read Replica DB Instance to a standalone DB Instance.
Constructor and Description |
---|
PromoteReadReplicaRequest() |
Modifier and Type | Method and Description |
---|---|
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. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, 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. The following list shows 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. The following list shows 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. The following list shows 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. The following list shows 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. The following list shows 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. The following list shows 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.