/*
* 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 datasync-2018-11-09.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.DataSync.Model
{
///
/// Container for the parameters to the UpdateTask operation.
/// Updates the metadata associated with a task.
///
public partial class UpdateTaskRequest : AmazonDataSyncRequest
{
private string _cloudWatchLogGroupArn;
private List _excludes = new List();
private List _includes = new List();
private string _name;
private Options _options;
private TaskSchedule _schedule;
private string _taskArn;
///
/// Gets and sets the property CloudWatchLogGroupArn.
///
/// The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group.
///
///
[AWSProperty(Max=562)]
public string CloudWatchLogGroupArn
{
get { return this._cloudWatchLogGroupArn; }
set { this._cloudWatchLogGroupArn = value; }
}
// Check to see if CloudWatchLogGroupArn property is set
internal bool IsSetCloudWatchLogGroupArn()
{
return this._cloudWatchLogGroupArn != null;
}
///
/// Gets and sets the property Excludes.
///
/// Specifies a list of filter rules that exclude specific data during your transfer.
/// For more information and examples, see Filtering
/// data transferred by DataSync.
///
///
[AWSProperty(Min=0, Max=1)]
public List Excludes
{
get { return this._excludes; }
set { this._excludes = value; }
}
// Check to see if Excludes property is set
internal bool IsSetExcludes()
{
return this._excludes != null && this._excludes.Count > 0;
}
///
/// Gets and sets the property Includes.
///
/// Specifies a list of filter rules that include specific data during your transfer.
/// For more information and examples, see Filtering
/// data transferred by DataSync.
///
///
[AWSProperty(Min=0, Max=1)]
public List Includes
{
get { return this._includes; }
set { this._includes = value; }
}
// Check to see if Includes property is set
internal bool IsSetIncludes()
{
return this._includes != null && this._includes.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the task to update.
///
///
[AWSProperty(Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Options.
///
public Options Options
{
get { return this._options; }
set { this._options = value; }
}
// Check to see if Options property is set
internal bool IsSetOptions()
{
return this._options != null;
}
///
/// Gets and sets the property Schedule.
///
/// Specifies a schedule used to periodically transfer files from a source to a destination
/// location. You can configure your task to execute hourly, daily, weekly or on specific
/// days of the week. You control when in the day or hour you want the task to execute.
/// The time you specify is UTC time. For more information, see Scheduling
/// your task.
///
///
public TaskSchedule Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
///
/// Gets and sets the property TaskArn.
///
/// The Amazon Resource Name (ARN) of the resource name of the task to update.
///
///
[AWSProperty(Required=true, Max=128)]
public string TaskArn
{
get { return this._taskArn; }
set { this._taskArn = value; }
}
// Check to see if TaskArn property is set
internal bool IsSetTaskArn()
{
return this._taskArn != null;
}
}
}