/*
* 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 rds-2014-10-31.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.RDS.Model
{
///
/// An automated backup of a DB instance. It consists of system backups, transaction logs,
/// and the database instance properties that existed at the time you deleted the source
/// instance.
///
public partial class DBInstanceAutomatedBackup
{
private int? _allocatedStorage;
private string _availabilityZone;
private int? _backupRetentionPeriod;
private string _backupTarget;
private string _dbInstanceArn;
private string _dbInstanceAutomatedBackupsArn;
private List _dbInstanceAutomatedBackupsReplications = new List();
private string _dbInstanceIdentifier;
private string _dbiResourceId;
private bool? _encrypted;
private string _engine;
private string _engineVersion;
private bool? _iamDatabaseAuthenticationEnabled;
private DateTime? _instanceCreateTime;
private int? _iops;
private string _kmsKeyId;
private string _licenseModel;
private string _masterUsername;
private string _optionGroupName;
private int? _port;
private string _region;
private RestoreWindow _restoreWindow;
private string _status;
private int? _storageThroughput;
private string _storageType;
private string _tdeCredentialArn;
private string _timezone;
private string _vpcId;
///
/// Gets and sets the property AllocatedStorage.
///
/// Specifies the allocated storage size in gibibytes (GiB).
///
///
public int AllocatedStorage
{
get { return this._allocatedStorage.GetValueOrDefault(); }
set { this._allocatedStorage = value; }
}
// Check to see if AllocatedStorage property is set
internal bool IsSetAllocatedStorage()
{
return this._allocatedStorage.HasValue;
}
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone that the automated backup was created in. For information on
/// Amazon Web Services Regions and Availability Zones, see Regions
/// and Availability Zones.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property BackupRetentionPeriod.
///
/// The retention period for the automated backups.
///
///
public int BackupRetentionPeriod
{
get { return this._backupRetentionPeriod.GetValueOrDefault(); }
set { this._backupRetentionPeriod = value; }
}
// Check to see if BackupRetentionPeriod property is set
internal bool IsSetBackupRetentionPeriod()
{
return this._backupRetentionPeriod.HasValue;
}
///
/// Gets and sets the property BackupTarget.
///
/// Specifies where automated backups are stored: Amazon Web Services Outposts or the
/// Amazon Web Services Region.
///
///
public string BackupTarget
{
get { return this._backupTarget; }
set { this._backupTarget = value; }
}
// Check to see if BackupTarget property is set
internal bool IsSetBackupTarget()
{
return this._backupTarget != null;
}
///
/// Gets and sets the property DBInstanceArn.
///
/// The Amazon Resource Name (ARN) for the automated backups.
///
///
public string DBInstanceArn
{
get { return this._dbInstanceArn; }
set { this._dbInstanceArn = value; }
}
// Check to see if DBInstanceArn property is set
internal bool IsSetDBInstanceArn()
{
return this._dbInstanceArn != null;
}
///
/// Gets and sets the property DBInstanceAutomatedBackupsArn.
///
/// The Amazon Resource Name (ARN) for the replicated automated backups.
///
///
public string DBInstanceAutomatedBackupsArn
{
get { return this._dbInstanceAutomatedBackupsArn; }
set { this._dbInstanceAutomatedBackupsArn = value; }
}
// Check to see if DBInstanceAutomatedBackupsArn property is set
internal bool IsSetDBInstanceAutomatedBackupsArn()
{
return this._dbInstanceAutomatedBackupsArn != null;
}
///
/// Gets and sets the property DBInstanceAutomatedBackupsReplications.
///
/// The list of replications to different Amazon Web Services Regions associated with
/// the automated backup.
///
///
public List DBInstanceAutomatedBackupsReplications
{
get { return this._dbInstanceAutomatedBackupsReplications; }
set { this._dbInstanceAutomatedBackupsReplications = value; }
}
// Check to see if DBInstanceAutomatedBackupsReplications property is set
internal bool IsSetDBInstanceAutomatedBackupsReplications()
{
return this._dbInstanceAutomatedBackupsReplications != null && this._dbInstanceAutomatedBackupsReplications.Count > 0;
}
///
/// Gets and sets the property DBInstanceIdentifier.
///
/// The customer id of the instance that is/was associated with the automated backup.
///
///
public string DBInstanceIdentifier
{
get { return this._dbInstanceIdentifier; }
set { this._dbInstanceIdentifier = value; }
}
// Check to see if DBInstanceIdentifier property is set
internal bool IsSetDBInstanceIdentifier()
{
return this._dbInstanceIdentifier != null;
}
///
/// Gets and sets the property DbiResourceId.
///
/// The identifier for the source DB instance, which can't be changed and which is unique
/// to an Amazon Web Services Region.
///
///
public string DbiResourceId
{
get { return this._dbiResourceId; }
set { this._dbiResourceId = value; }
}
// Check to see if DbiResourceId property is set
internal bool IsSetDbiResourceId()
{
return this._dbiResourceId != null;
}
///
/// Gets and sets the property Encrypted.
///
/// Specifies whether the automated backup is encrypted.
///
///
public bool Encrypted
{
get { return this._encrypted.GetValueOrDefault(); }
set { this._encrypted = value; }
}
// Check to see if Encrypted property is set
internal bool IsSetEncrypted()
{
return this._encrypted.HasValue;
}
///
/// Gets and sets the property Engine.
///
/// The name of the database engine for this automated backup.
///
///
public string Engine
{
get { return this._engine; }
set { this._engine = value; }
}
// Check to see if Engine property is set
internal bool IsSetEngine()
{
return this._engine != null;
}
///
/// Gets and sets the property EngineVersion.
///
/// The version of the database engine for the automated backup.
///
///
public string EngineVersion
{
get { return this._engineVersion; }
set { this._engineVersion = value; }
}
// Check to see if EngineVersion property is set
internal bool IsSetEngineVersion()
{
return this._engineVersion != null;
}
///
/// Gets and sets the property IAMDatabaseAuthenticationEnabled.
///
/// True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts
/// to database accounts is enabled, and otherwise false.
///
///
public bool IAMDatabaseAuthenticationEnabled
{
get { return this._iamDatabaseAuthenticationEnabled.GetValueOrDefault(); }
set { this._iamDatabaseAuthenticationEnabled = value; }
}
// Check to see if IAMDatabaseAuthenticationEnabled property is set
internal bool IsSetIAMDatabaseAuthenticationEnabled()
{
return this._iamDatabaseAuthenticationEnabled.HasValue;
}
///
/// Gets and sets the property InstanceCreateTime.
///
/// Provides the date and time that the DB instance was created.
///
///
public DateTime InstanceCreateTime
{
get { return this._instanceCreateTime.GetValueOrDefault(); }
set { this._instanceCreateTime = value; }
}
// Check to see if InstanceCreateTime property is set
internal bool IsSetInstanceCreateTime()
{
return this._instanceCreateTime.HasValue;
}
///
/// Gets and sets the property Iops.
///
/// The IOPS (I/O operations per second) value for the automated backup.
///
///
public int Iops
{
get { return this._iops.GetValueOrDefault(); }
set { this._iops = value; }
}
// Check to see if Iops property is set
internal bool IsSetIops()
{
return this._iops.HasValue;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The Amazon Web Services KMS key ID for an automated backup.
///
///
///
/// The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias
/// name for the KMS key.
///
///
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property LicenseModel.
///
/// License model information for the automated backup.
///
///
public string LicenseModel
{
get { return this._licenseModel; }
set { this._licenseModel = value; }
}
// Check to see if LicenseModel property is set
internal bool IsSetLicenseModel()
{
return this._licenseModel != null;
}
///
/// Gets and sets the property MasterUsername.
///
/// The license model of an automated backup.
///
///
public string MasterUsername
{
get { return this._masterUsername; }
set { this._masterUsername = value; }
}
// Check to see if MasterUsername property is set
internal bool IsSetMasterUsername()
{
return this._masterUsername != null;
}
///
/// Gets and sets the property OptionGroupName.
///
/// The option group the automated backup is associated with. If omitted, the default
/// option group for the engine specified is used.
///
///
public string OptionGroupName
{
get { return this._optionGroupName; }
set { this._optionGroupName = value; }
}
// Check to see if OptionGroupName property is set
internal bool IsSetOptionGroupName()
{
return this._optionGroupName != null;
}
///
/// Gets and sets the property Port.
///
/// The port number that the automated backup used for connections.
///
///
///
/// Default: Inherits from the source DB instance
///
///
///
/// Valid Values: 1150-65535
///
///
public int Port
{
get { return this._port.GetValueOrDefault(); }
set { this._port = value; }
}
// Check to see if Port property is set
internal bool IsSetPort()
{
return this._port.HasValue;
}
///
/// Gets and sets the property Region.
///
/// The Amazon Web Services Region associated with the automated backup.
///
///
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property RestoreWindow.
///
/// Earliest and latest time an instance can be restored to.
///
///
public RestoreWindow RestoreWindow
{
get { return this._restoreWindow; }
set { this._restoreWindow = value; }
}
// Check to see if RestoreWindow property is set
internal bool IsSetRestoreWindow()
{
return this._restoreWindow != null;
}
///
/// Gets and sets the property Status.
///
/// Provides a list of status information for an automated backup:
///
/// -
///
///
active
- automated backups for current instances
///
/// -
///
///
retained
- automated backups for deleted instances
///
/// -
///
///
creating
- automated backups that are waiting for the first automated
/// snapshot to be available.
///
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StorageThroughput.
///
/// Specifies the storage throughput for the automated backup.
///
///
public int StorageThroughput
{
get { return this._storageThroughput.GetValueOrDefault(); }
set { this._storageThroughput = value; }
}
// Check to see if StorageThroughput property is set
internal bool IsSetStorageThroughput()
{
return this._storageThroughput.HasValue;
}
///
/// Gets and sets the property StorageType.
///
/// Specifies the storage type associated with the automated backup.
///
///
public string StorageType
{
get { return this._storageType; }
set { this._storageType = value; }
}
// Check to see if StorageType property is set
internal bool IsSetStorageType()
{
return this._storageType != null;
}
///
/// Gets and sets the property TdeCredentialArn.
///
/// The ARN from the key store with which the automated backup is associated for TDE encryption.
///
///
public string TdeCredentialArn
{
get { return this._tdeCredentialArn; }
set { this._tdeCredentialArn = value; }
}
// Check to see if TdeCredentialArn property is set
internal bool IsSetTdeCredentialArn()
{
return this._tdeCredentialArn != null;
}
///
/// Gets and sets the property Timezone.
///
/// The time zone of the automated backup. In most cases, the Timezone
element
/// is empty. Timezone
content appears only for Microsoft SQL Server DB instances
/// that were created with a time zone specified.
///
///
public string Timezone
{
get { return this._timezone; }
set { this._timezone = value; }
}
// Check to see if Timezone property is set
internal bool IsSetTimezone()
{
return this._timezone != null;
}
///
/// Gets and sets the property VpcId.
///
/// Provides the VPC ID associated with the DB instance.
///
///
public string VpcId
{
get { return this._vpcId; }
set { this._vpcId = value; }
}
// Check to see if VpcId property is set
internal bool IsSetVpcId()
{
return this._vpcId != null;
}
}
}