/* * 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 CreateRelationalDatabaseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name to use for your new Lightsail database resource. *

*

* Constraints: *

* */ private String relationalDatabaseName; /** *

* The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive * format. *

*

* You can get a list of Availability Zones by using the get regions operation. Be sure to add the * include relational database Availability Zones parameter to your request. *

*/ private String availabilityZone; /** *

* The blueprint ID for your new database. A blueprint describes the major engine version of a database. *

*

* You can get a list of database blueprints IDs by using the get relational database blueprints * operation. *

*/ private String relationalDatabaseBlueprintId; /** *

* The bundle ID for your new database. A bundle describes the performance specifications for your database. *

*

* You can get a list of database bundle IDs by using the get relational database bundles operation. *

*/ private String relationalDatabaseBundleId; /** *

* The meaning of this parameter differs according to the database engine you use. *

*

* MySQL *

*

* The name of the database to create when the Lightsail database resource is created. If this parameter isn't * specified, no database is created in the database resource. *

*

* Constraints: *

* *

* PostgreSQL *

*

* The name of the database to create when the Lightsail database resource is created. If this parameter isn't * specified, a database named postgres is created in the database resource. *

*

* Constraints: *

* */ private String masterDatabaseName; /** *

* The name for the master user. *

*

* MySQL *

*

* Constraints: *

* *

* PostgreSQL *

*

* Constraints: *

* */ private String masterUsername; /** *

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

*

* MySQL *

*

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

*

* PostgreSQL *

*

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

*/ private String masterUserPassword; /** *

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

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. For more * information about the preferred backup window time blocks for each region, see the Working With Backups guide in the Amazon Relational Database Service documentation. *

*

* Constraints: *

* */ private String preferredBackupWindow; /** *

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

*

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

*

* Constraints: *

* */ private String preferredMaintenanceWindow; /** *

* Specifies the accessibility options for your new 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; /** *

* The tag keys and optional values to add to the resource during create. *

*

* Use the TagResource action to tag a resource after it's created. *

*/ private java.util.List tags; /** *

* The name to use for your new Lightsail database resource. *

*

* Constraints: *

* * * @param relationalDatabaseName * The name to use for your new Lightsail database resource.

*

* Constraints: *

*