/*
* 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 ReloadReplicationTables operation.
/// Reloads the target database table with the source data for a given DMS Serverless
/// replication configuration.
///
///
///
/// You can only use this operation with a task in the RUNNING state, otherwise the service
/// will throw an InvalidResourceStateFault
exception.
///
///
public partial class ReloadReplicationTablesRequest : AmazonDatabaseMigrationServiceRequest
{
private ReloadOptionValue _reloadOption;
private string _replicationConfigArn;
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 replication.
///
///
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 ReplicationConfigArn.
///
/// The Amazon Resource Name of the replication config for which to reload tables.
///
///
[AWSProperty(Required=true)]
public string ReplicationConfigArn
{
get { return this._replicationConfigArn; }
set { this._replicationConfigArn = value; }
}
// Check to see if ReplicationConfigArn property is set
internal bool IsSetReplicationConfigArn()
{
return this._replicationConfigArn != null;
}
///
/// Gets and sets the property TablesToReload.
///
/// The list of tables to reload.
///
///
[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;
}
}
}