/*
* 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
{
///
/// Container for the parameters to the StartDBInstanceAutomatedBackupsReplication operation.
/// Enables replication of automated backups to a different Amazon Web Services Region.
///
///
///
/// This command doesn't apply to RDS Custom.
///
///
///
/// For more information, see
/// Replicating Automated Backups to Another Amazon Web Services Region in the Amazon
/// RDS User Guide.
///
///
public partial class StartDBInstanceAutomatedBackupsReplicationRequest : AmazonRDSRequest
{
private int? _backupRetentionPeriod;
private string _kmsKeyId;
private string _preSignedUrl;
private string _sourceDBInstanceArn;
///
/// Gets and sets the property BackupRetentionPeriod.
///
/// The retention period for the replicated 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 KmsKeyId.
///
/// The Amazon Web Services KMS key identifier for encryption of the replicated automated
/// backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key
/// in the destination Amazon Web Services Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
///
///
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 PreSignedUrl.
///
/// In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version
/// 4 signed request for the StartDBInstanceAutomatedBackupsReplication
operation
/// to call in the Amazon Web Services Region of the source DB instance. The presigned
/// URL must be a valid request for the StartDBInstanceAutomatedBackupsReplication
/// API operation that can run in the Amazon Web Services Region that contains the source
/// DB instance.
///
///
///
/// This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored
/// in other Amazon Web Services Regions.
///
///
///
/// To learn how to generate a Signature Version 4 signed request, see
/// Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version
/// 4) and
/// Signature Version 4 Signing Process.
///
///
///
/// If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
/// (or --source-region
for the CLI) instead of specifying PreSignedUrl
/// manually. Specifying SourceRegion
autogenerates a presigned URL that
/// is a valid request for the operation that can run in the source Amazon Web Services
/// Region.
///
///
///
public string PreSignedUrl
{
get { return this._preSignedUrl; }
set { this._preSignedUrl = value; }
}
// Check to see if PreSignedUrl property is set
internal bool IsSetPreSignedUrl()
{
return this._preSignedUrl != null;
}
///
/// Gets and sets the property SourceDBInstanceArn.
///
/// The Amazon Resource Name (ARN) of the source DB instance for the replicated automated
/// backups, for example, arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
///
///
[AWSProperty(Required=true)]
public string SourceDBInstanceArn
{
get { return this._sourceDBInstanceArn; }
set { this._sourceDBInstanceArn = value; }
}
// Check to see if SourceDBInstanceArn property is set
internal bool IsSetSourceDBInstanceArn()
{
return this._sourceDBInstanceArn != null;
}
}
}