/* * 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 dms-2016-01-01.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.DatabaseMigrationService.Model { /// /// Container for the parameters to the ReloadTables operation. /// Reloads the target database table with the source data. /// /// /// /// You can only use this operation with a task in the RUNNING state, otherwise /// the service will throw an InvalidResourceStateFault exception. /// /// public partial class ReloadTablesRequest : AmazonDatabaseMigrationServiceRequest { private ReloadOptionValue _reloadOption; private string _replicationTaskArn; private List _tablesToReload = new List(); /// /// Gets and sets the property ReloadOption. /// /// Options for reload. Specify data-reload to reload the data and re-validate /// it if validation is enabled. Specify validate-only to re-validate the /// table. This option applies only when validation is enabled for the task. /// /// /// /// Valid values: data-reload, validate-only /// /// /// /// Default value is data-reload. /// /// public ReloadOptionValue ReloadOption { get { return this._reloadOption; } set { this._reloadOption = value; } } // Check to see if ReloadOption property is set internal bool IsSetReloadOption() { return this._reloadOption != null; } /// /// Gets and sets the property ReplicationTaskArn. /// /// The Amazon Resource Name (ARN) of the replication task. /// /// [AWSProperty(Required=true)] public string ReplicationTaskArn { get { return this._replicationTaskArn; } set { this._replicationTaskArn = value; } } // Check to see if ReplicationTaskArn property is set internal bool IsSetReplicationTaskArn() { return this._replicationTaskArn != null; } /// /// Gets and sets the property TablesToReload. /// /// The name and schema of the table to be reloaded. /// /// [AWSProperty(Required=true)] public List TablesToReload { get { return this._tablesToReload; } set { this._tablesToReload = value; } } // Check to see if TablesToReload property is set internal bool IsSetTablesToReload() { return this._tablesToReload != null && this._tablesToReload.Count > 0; } } }