/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateRelationalDatabaseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of your Lightsail database resource to update. *

*/ private String relationalDatabaseName; /** *

* The password for the master user. The password can include any printable ASCII character except "/", """, or "@". *

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. *

*/ private String masterUserPassword; /** *

* When true, the master user password is changed to a new strong password generated by Lightsail. *

*

* Use the get relational database master user password operation to get the new password. *

*/ private Boolean rotateMasterUserPassword; /** *

* The daily time range during which automated backups are created for your database if automated backups are * enabled. *

*

* Constraints: *

* */ private String preferredBackupWindow; /** *

* The weekly time range during which system maintenance can occur on your database. *

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week. *

*

* Constraints: *

* */ private String preferredMaintenanceWindow; /** *

* When true, enables automated backup retention for your database. *

*

* Updates are applied during the next maintenance window because this can result in an outage. *

*/ private Boolean enableBackupRetention; /** *

* When true, disables automated backup retention for your database. *

*

* Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create * a snapshot of your database using the create relational database snapshot operation. *

*

* Updates are applied during the next maintenance window because this can result in an outage. *

*/ private Boolean disableBackupRetention; /** *

* Specifies the accessibility options for your database. A value of true specifies a database that is * available to resources outside of your Lightsail account. A value of false specifies a database that * is available only to your Lightsail resources in the same region as your database. *

*/ private Boolean publiclyAccessible; /** *

* When true, applies changes immediately. When false, applies changes during the * preferred maintenance window. Some changes may cause an outage. *

*

* Default: false *

*/ private Boolean applyImmediately; /** *

* Indicates the certificate that needs to be associated with the database. *

*/ private String caCertificateIdentifier; /** *

* The name of your Lightsail database resource to update. *

* * @param relationalDatabaseName * The name of your Lightsail database resource to update. */ public void setRelationalDatabaseName(String relationalDatabaseName) { this.relationalDatabaseName = relationalDatabaseName; } /** *

* The name of your Lightsail database resource to update. *

* * @return The name of your Lightsail database resource to update. */ public String getRelationalDatabaseName() { return this.relationalDatabaseName; } /** *

* The name of your Lightsail database resource to update. *

* * @param relationalDatabaseName * The name of your Lightsail database resource to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRelationalDatabaseRequest withRelationalDatabaseName(String relationalDatabaseName) { setRelationalDatabaseName(relationalDatabaseName); return this; } /** *

* The password for the master user. The password can include any printable ASCII character except "/", """, or "@". *

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. *

* * @param masterUserPassword * The password for the master user. The password can include any printable ASCII character except "/", * """, or "@".

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. */ public void setMasterUserPassword(String masterUserPassword) { this.masterUserPassword = masterUserPassword; } /** *

* The password for the master user. The password can include any printable ASCII character except "/", """, or "@". *

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. *

* * @return The password for the master user. The password can include any printable ASCII character except "/", * """, or "@".

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. */ public String getMasterUserPassword() { return this.masterUserPassword; } /** *

* The password for the master user. The password can include any printable ASCII character except "/", """, or "@". *

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. *

* * @param masterUserPassword * The password for the master user. The password can include any printable ASCII character except "/", * """, or "@".

*

* MySQL *

*

* Constraints: Must contain from 8 to 41 characters. *

*

* PostgreSQL *

*

* Constraints: Must contain from 8 to 128 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRelationalDatabaseRequest withMasterUserPassword(String masterUserPassword) { setMasterUserPassword(masterUserPassword); return this; } /** *

* When true, the master user password is changed to a new strong password generated by Lightsail. *

*

* Use the get relational database master user password operation to get the new password. *

* * @param rotateMasterUserPassword * When true, the master user password is changed to a new strong password generated by * Lightsail.

*

* Use the get relational database master user password operation to get the new password. */ public void setRotateMasterUserPassword(Boolean rotateMasterUserPassword) { this.rotateMasterUserPassword = rotateMasterUserPassword; } /** *

* When true, the master user password is changed to a new strong password generated by Lightsail. *

*

* Use the get relational database master user password operation to get the new password. *

* * @return When true, the master user password is changed to a new strong password generated by * Lightsail.

*

* Use the get relational database master user password operation to get the new password. */ public Boolean getRotateMasterUserPassword() { return this.rotateMasterUserPassword; } /** *

* When true, the master user password is changed to a new strong password generated by Lightsail. *

*

* Use the get relational database master user password operation to get the new password. *

* * @param rotateMasterUserPassword * When true, the master user password is changed to a new strong password generated by * Lightsail.

*

* Use the get relational database master user password operation to get the new password. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRelationalDatabaseRequest withRotateMasterUserPassword(Boolean rotateMasterUserPassword) { setRotateMasterUserPassword(rotateMasterUserPassword); return this; } /** *

* When true, the master user password is changed to a new strong password generated by Lightsail. *

*

* Use the get relational database master user password operation to get the new password. *

* * @return When true, the master user password is changed to a new strong password generated by * Lightsail.

*

* Use the get relational database master user password operation to get the new password. */ public Boolean isRotateMasterUserPassword() { return this.rotateMasterUserPassword; } /** *

* The daily time range during which automated backups are created for your database if automated backups are * enabled. *

*

* Constraints: *

* * * @param preferredBackupWindow * The daily time range during which automated backups are created for your database if automated backups are * enabled.

*

* Constraints: *

*