/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the lightsail-2016-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Lightsail.Model { /// /// Container for the parameters to the UpdateRelationalDatabase operation. /// Allows the update of one or more attributes of a database in Amazon Lightsail. /// /// /// /// Updates are applied immediately, or in cases where the updates could result in an /// outage, are applied during the database's predefined maintenance window. /// /// /// /// The update relational database operation supports tag-based access control /// via resource tags applied to the resource identified by relationalDatabaseName. For /// more information, see the Amazon /// Lightsail Developer Guide. /// /// public partial class UpdateRelationalDatabaseRequest : AmazonLightsailRequest { private bool? _applyImmediately; private string _caCertificateIdentifier; private bool? _disableBackupRetention; private bool? _enableBackupRetention; private string _masterUserPassword; private string _preferredBackupWindow; private string _preferredMaintenanceWindow; private bool? _publiclyAccessible; private string _relationalDatabaseName; private bool? _rotateMasterUserPassword; /// /// Gets and sets the property ApplyImmediately. /// /// When true, applies changes immediately. When false, applies /// changes during the preferred maintenance window. Some changes may cause an outage. /// /// /// /// Default: false /// /// public bool ApplyImmediately { get { return this._applyImmediately.GetValueOrDefault(); } set { this._applyImmediately = value; } } // Check to see if ApplyImmediately property is set internal bool IsSetApplyImmediately() { return this._applyImmediately.HasValue; } /// /// Gets and sets the property CaCertificateIdentifier. /// /// Indicates the certificate that needs to be associated with the database. /// /// public string CaCertificateIdentifier { get { return this._caCertificateIdentifier; } set { this._caCertificateIdentifier = value; } } // Check to see if CaCertificateIdentifier property is set internal bool IsSetCaCertificateIdentifier() { return this._caCertificateIdentifier != null; } /// /// Gets and sets the property DisableBackupRetention. /// /// 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. /// /// public bool DisableBackupRetention { get { return this._disableBackupRetention.GetValueOrDefault(); } set { this._disableBackupRetention = value; } } // Check to see if DisableBackupRetention property is set internal bool IsSetDisableBackupRetention() { return this._disableBackupRetention.HasValue; } /// /// Gets and sets the property EnableBackupRetention. /// /// When true, enables automated backup retention for your database. /// /// /// /// Updates are applied during the next maintenance window because this can result in /// an outage. /// /// public bool EnableBackupRetention { get { return this._enableBackupRetention.GetValueOrDefault(); } set { this._enableBackupRetention = value; } } // Check to see if EnableBackupRetention property is set internal bool IsSetEnableBackupRetention() { return this._enableBackupRetention.HasValue; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Sensitive=true)] public string MasterUserPassword { get { return this._masterUserPassword; } set { this._masterUserPassword = value; } } // Check to see if MasterUserPassword property is set internal bool IsSetMasterUserPassword() { return this._masterUserPassword != null; } /// /// Gets and sets the property PreferredBackupWindow. /// /// The daily time range during which automated backups are created for your database /// if automated backups are enabled. /// /// /// /// Constraints: /// /// /// public string PreferredBackupWindow { get { return this._preferredBackupWindow; } set { this._preferredBackupWindow = value; } } // Check to see if PreferredBackupWindow property is set internal bool IsSetPreferredBackupWindow() { return this._preferredBackupWindow != null; } /// /// Gets and sets the property PreferredMaintenanceWindow. /// /// 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: /// /// /// public string PreferredMaintenanceWindow { get { return this._preferredMaintenanceWindow; } set { this._preferredMaintenanceWindow = value; } } // Check to see if PreferredMaintenanceWindow property is set internal bool IsSetPreferredMaintenanceWindow() { return this._preferredMaintenanceWindow != null; } /// /// Gets and sets the property PubliclyAccessible. /// /// 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. /// /// public bool PubliclyAccessible { get { return this._publiclyAccessible.GetValueOrDefault(); } set { this._publiclyAccessible = value; } } // Check to see if PubliclyAccessible property is set internal bool IsSetPubliclyAccessible() { return this._publiclyAccessible.HasValue; } /// /// Gets and sets the property RelationalDatabaseName. /// /// The name of your Lightsail database resource to update. /// /// [AWSProperty(Required=true)] public string RelationalDatabaseName { get { return this._relationalDatabaseName; } set { this._relationalDatabaseName = value; } } // Check to see if RelationalDatabaseName property is set internal bool IsSetRelationalDatabaseName() { return this._relationalDatabaseName != null; } /// /// Gets and sets the property 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 bool RotateMasterUserPassword { get { return this._rotateMasterUserPassword.GetValueOrDefault(); } set { this._rotateMasterUserPassword = value; } } // Check to see if RotateMasterUserPassword property is set internal bool IsSetRotateMasterUserPassword() { return this._rotateMasterUserPassword.HasValue; } } }