/*
* 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
{
///
/// Contains the details of a snapshot or cluster export to Amazon S3.
///
///
///
/// This data type is used as a response element in the DescribeExportTasks
/// action.
///
///
public partial class CancelExportTaskResponse : AmazonWebServiceResponse
{
private List _exportOnly = new List();
private string _exportTaskIdentifier;
private string _failureCause;
private string _iamRoleArn;
private string _kmsKeyId;
private int? _percentProgress;
private string _s3Bucket;
private string _s3Prefix;
private DateTime? _snapshotTime;
private string _sourceArn;
private ExportSourceType _sourceType;
private string _status;
private DateTime? _taskEndTime;
private DateTime? _taskStartTime;
private int? _totalExtractedDataInGB;
private string _warningMessage;
///
/// Gets and sets the property ExportOnly.
///
/// The data exported from the snapshot or cluster. Valid values are the following:
///
/// -
///
///
database
- Export all the data from a specified database.
///
/// -
///
///
database.table
table-name - Export a table of the snapshot or
/// cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora
/// MySQL.
///
/// -
///
///
database.schema
schema-name - Export a database schema of the
/// snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
///
/// -
///
///
database.schema.table
table-name - Export a table of the database
/// schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
///
///
///
public List ExportOnly
{
get { return this._exportOnly; }
set { this._exportOnly = value; }
}
// Check to see if ExportOnly property is set
internal bool IsSetExportOnly()
{
return this._exportOnly != null && this._exportOnly.Count > 0;
}
///
/// Gets and sets the property ExportTaskIdentifier.
///
/// A unique identifier for the snapshot or cluster export task. This ID isn't an identifier
/// for the Amazon S3 bucket where the data is exported.
///
///
public string ExportTaskIdentifier
{
get { return this._exportTaskIdentifier; }
set { this._exportTaskIdentifier = value; }
}
// Check to see if ExportTaskIdentifier property is set
internal bool IsSetExportTaskIdentifier()
{
return this._exportTaskIdentifier != null;
}
///
/// Gets and sets the property FailureCause.
///
/// The reason the export failed, if it failed.
///
///
public string FailureCause
{
get { return this._failureCause; }
set { this._failureCause = value; }
}
// Check to see if FailureCause property is set
internal bool IsSetFailureCause()
{
return this._failureCause != null;
}
///
/// Gets and sets the property IamRoleArn.
///
/// The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot
/// or cluster.
///
///
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The key identifier of the Amazon Web Services KMS key that is used to encrypt the
/// data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID,
/// alias ARN, or alias name. The IAM role used for the export must have encryption and
/// decryption permissions to use this 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 PercentProgress.
///
/// The progress of the snapshot or cluster export task as a percentage.
///
///
public int PercentProgress
{
get { return this._percentProgress.GetValueOrDefault(); }
set { this._percentProgress = value; }
}
// Check to see if PercentProgress property is set
internal bool IsSetPercentProgress()
{
return this._percentProgress.HasValue;
}
///
/// Gets and sets the property S3Bucket.
///
/// The Amazon S3 bucket that the snapshot or cluster is exported to.
///
///
public string S3Bucket
{
get { return this._s3Bucket; }
set { this._s3Bucket = value; }
}
// Check to see if S3Bucket property is set
internal bool IsSetS3Bucket()
{
return this._s3Bucket != null;
}
///
/// Gets and sets the property S3Prefix.
///
/// The Amazon S3 bucket prefix that is the file name and path of the exported data.
///
///
public string S3Prefix
{
get { return this._s3Prefix; }
set { this._s3Prefix = value; }
}
// Check to see if S3Prefix property is set
internal bool IsSetS3Prefix()
{
return this._s3Prefix != null;
}
///
/// Gets and sets the property SnapshotTime.
///
/// The time that the snapshot was created.
///
///
public DateTime SnapshotTime
{
get { return this._snapshotTime.GetValueOrDefault(); }
set { this._snapshotTime = value; }
}
// Check to see if SnapshotTime property is set
internal bool IsSetSnapshotTime()
{
return this._snapshotTime.HasValue;
}
///
/// Gets and sets the property SourceArn.
///
/// The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
///
///
public string SourceArn
{
get { return this._sourceArn; }
set { this._sourceArn = value; }
}
// Check to see if SourceArn property is set
internal bool IsSetSourceArn()
{
return this._sourceArn != null;
}
///
/// Gets and sets the property SourceType.
///
/// The type of source for the export.
///
///
public ExportSourceType SourceType
{
get { return this._sourceType; }
set { this._sourceType = value; }
}
// Check to see if SourceType property is set
internal bool IsSetSourceType()
{
return this._sourceType != null;
}
///
/// Gets and sets the property Status.
///
/// The progress status of the export task. The status can be one of the following:
///
/// -
///
///
CANCELED
///
/// -
///
///
CANCELING
///
/// -
///
///
COMPLETE
///
/// -
///
///
FAILED
///
/// -
///
///
IN_PROGRESS
///
/// -
///
///
STARTING
///
///
///
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 TaskEndTime.
///
/// The time that the snapshot or cluster export task ended.
///
///
public DateTime TaskEndTime
{
get { return this._taskEndTime.GetValueOrDefault(); }
set { this._taskEndTime = value; }
}
// Check to see if TaskEndTime property is set
internal bool IsSetTaskEndTime()
{
return this._taskEndTime.HasValue;
}
///
/// Gets and sets the property TaskStartTime.
///
/// The time that the snapshot or cluster export task started.
///
///
public DateTime TaskStartTime
{
get { return this._taskStartTime.GetValueOrDefault(); }
set { this._taskStartTime = value; }
}
// Check to see if TaskStartTime property is set
internal bool IsSetTaskStartTime()
{
return this._taskStartTime.HasValue;
}
///
/// Gets and sets the property TotalExtractedDataInGB.
///
/// The total amount of data exported, in gigabytes.
///
///
public int TotalExtractedDataInGB
{
get { return this._totalExtractedDataInGB.GetValueOrDefault(); }
set { this._totalExtractedDataInGB = value; }
}
// Check to see if TotalExtractedDataInGB property is set
internal bool IsSetTotalExtractedDataInGB()
{
return this._totalExtractedDataInGB.HasValue;
}
///
/// Gets and sets the property WarningMessage.
///
/// A warning about the snapshot or cluster export task.
///
///
public string WarningMessage
{
get { return this._warningMessage; }
set { this._warningMessage = value; }
}
// Check to see if WarningMessage property is set
internal bool IsSetWarningMessage()
{
return this._warningMessage != null;
}
}
}