/* * 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 redshift-serverless-2021-04-21.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.RedshiftServerless.Model { /// /// Contains information about a table restore request. /// public partial class TableRestoreStatus { private string _message; private string _namespaceName; private string _newTableName; private long? _progressInMegaBytes; private DateTime? _requestTime; private string _snapshotName; private string _sourceDatabaseName; private string _sourceSchemaName; private string _sourceTableName; private string _status; private string _tableRestoreRequestId; private string _targetDatabaseName; private string _targetSchemaName; private long? _totalDataInMegaBytes; private string _workgroupName; /// /// Gets and sets the property Message. /// /// A description of the status of the table restore request. Status values include SUCCEEDED, /// FAILED, CANCELED, PENDING, IN_PROGRESS. /// /// public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// /// Gets and sets the property NamespaceName. /// /// The namespace of the table being restored from. /// /// public string NamespaceName { get { return this._namespaceName; } set { this._namespaceName = value; } } // Check to see if NamespaceName property is set internal bool IsSetNamespaceName() { return this._namespaceName != null; } /// /// Gets and sets the property NewTableName. /// /// The name of the table to create from the restore operation. /// /// public string NewTableName { get { return this._newTableName; } set { this._newTableName = value; } } // Check to see if NewTableName property is set internal bool IsSetNewTableName() { return this._newTableName != null; } /// /// Gets and sets the property ProgressInMegaBytes. /// /// The amount of data restored to the new table so far, in megabytes (MB). /// /// public long ProgressInMegaBytes { get { return this._progressInMegaBytes.GetValueOrDefault(); } set { this._progressInMegaBytes = value; } } // Check to see if ProgressInMegaBytes property is set internal bool IsSetProgressInMegaBytes() { return this._progressInMegaBytes.HasValue; } /// /// Gets and sets the property RequestTime. /// /// The time that the table restore request was made, in Universal Coordinated Time (UTC). /// /// public DateTime RequestTime { get { return this._requestTime.GetValueOrDefault(); } set { this._requestTime = value; } } // Check to see if RequestTime property is set internal bool IsSetRequestTime() { return this._requestTime.HasValue; } /// /// Gets and sets the property SnapshotName. /// /// The name of the snapshot being restored from. /// /// public string SnapshotName { get { return this._snapshotName; } set { this._snapshotName = value; } } // Check to see if SnapshotName property is set internal bool IsSetSnapshotName() { return this._snapshotName != null; } /// /// Gets and sets the property SourceDatabaseName. /// /// The name of the source database being restored from. /// /// public string SourceDatabaseName { get { return this._sourceDatabaseName; } set { this._sourceDatabaseName = value; } } // Check to see if SourceDatabaseName property is set internal bool IsSetSourceDatabaseName() { return this._sourceDatabaseName != null; } /// /// Gets and sets the property SourceSchemaName. /// /// The name of the source schema being restored from. /// /// public string SourceSchemaName { get { return this._sourceSchemaName; } set { this._sourceSchemaName = value; } } // Check to see if SourceSchemaName property is set internal bool IsSetSourceSchemaName() { return this._sourceSchemaName != null; } /// /// Gets and sets the property SourceTableName. /// /// The name of the source table being restored from. /// /// public string SourceTableName { get { return this._sourceTableName; } set { this._sourceTableName = value; } } // Check to see if SourceTableName property is set internal bool IsSetSourceTableName() { return this._sourceTableName != null; } /// /// Gets and sets the property Status. /// /// A value that describes the current state of the table restore request. Possible values /// include SUCCEEDED, FAILED, CANCELED, PENDING, /// IN_PROGRESS. /// /// 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 TableRestoreRequestId. /// /// The ID of the RestoreTableFromSnapshot request. /// /// public string TableRestoreRequestId { get { return this._tableRestoreRequestId; } set { this._tableRestoreRequestId = value; } } // Check to see if TableRestoreRequestId property is set internal bool IsSetTableRestoreRequestId() { return this._tableRestoreRequestId != null; } /// /// Gets and sets the property TargetDatabaseName. /// /// The name of the database to restore to. /// /// public string TargetDatabaseName { get { return this._targetDatabaseName; } set { this._targetDatabaseName = value; } } // Check to see if TargetDatabaseName property is set internal bool IsSetTargetDatabaseName() { return this._targetDatabaseName != null; } /// /// Gets and sets the property TargetSchemaName. /// /// The name of the schema to restore to. /// /// public string TargetSchemaName { get { return this._targetSchemaName; } set { this._targetSchemaName = value; } } // Check to see if TargetSchemaName property is set internal bool IsSetTargetSchemaName() { return this._targetSchemaName != null; } /// /// Gets and sets the property TotalDataInMegaBytes. /// /// The total amount of data to restore to the new table, in megabytes (MB). /// /// public long TotalDataInMegaBytes { get { return this._totalDataInMegaBytes.GetValueOrDefault(); } set { this._totalDataInMegaBytes = value; } } // Check to see if TotalDataInMegaBytes property is set internal bool IsSetTotalDataInMegaBytes() { return this._totalDataInMegaBytes.HasValue; } /// /// Gets and sets the property WorkgroupName. /// /// The name of the workgroup being restored from. /// /// public string WorkgroupName { get { return this._workgroupName; } set { this._workgroupName = value; } } // Check to see if WorkgroupName property is set internal bool IsSetWorkgroupName() { return this._workgroupName != null; } } }