/* * 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 { /// /// DescribeTaskResponse /// public partial class DescribeTaskResponse : AmazonWebServiceResponse { private string _cloudWatchLogGroupArn; private DateTime? _creationTime; private string _currentTaskExecutionArn; private string _destinationLocationArn; private List _destinationNetworkInterfaceArns = new List(); private string _errorCode; private string _errorDetail; private List _excludes = new List(); private List _includes = new List(); private string _name; private Options _options; private TaskSchedule _schedule; private string _sourceLocationArn; private List _sourceNetworkInterfaceArns = new List(); private TaskStatus _status; private string _taskArn; /// /// Gets and sets the property CloudWatchLogGroupArn. /// /// The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to /// monitor and log events in the task. /// /// /// /// For more information on these groups, see Working with Log Groups and Log Streams /// in the Amazon CloudWatch User Guide. /// /// [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 CreationTime. /// /// The time that the task was created. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property CurrentTaskExecutionArn. /// /// The Amazon Resource Name (ARN) of the task execution that is transferring files. /// /// [AWSProperty(Max=128)] public string CurrentTaskExecutionArn { get { return this._currentTaskExecutionArn; } set { this._currentTaskExecutionArn = value; } } // Check to see if CurrentTaskExecutionArn property is set internal bool IsSetCurrentTaskExecutionArn() { return this._currentTaskExecutionArn != null; } /// /// Gets and sets the property DestinationLocationArn. /// /// The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location. /// /// [AWSProperty(Max=128)] public string DestinationLocationArn { get { return this._destinationLocationArn; } set { this._destinationLocationArn = value; } } // Check to see if DestinationLocationArn property is set internal bool IsSetDestinationLocationArn() { return this._destinationLocationArn != null; } /// /// Gets and sets the property DestinationNetworkInterfaceArns. /// /// The Amazon Resource Names (ARNs) of the network interfaces created for your destination /// location. For more information, see Network /// interface requirements. /// /// public List DestinationNetworkInterfaceArns { get { return this._destinationNetworkInterfaceArns; } set { this._destinationNetworkInterfaceArns = value; } } // Check to see if DestinationNetworkInterfaceArns property is set internal bool IsSetDestinationNetworkInterfaceArns() { return this._destinationNetworkInterfaceArns != null && this._destinationNetworkInterfaceArns.Count > 0; } /// /// Gets and sets the property ErrorCode. /// /// Errors that DataSync encountered during execution of the task. You can use this error /// code to help troubleshoot issues. /// /// public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// /// Gets and sets the property ErrorDetail. /// /// Detailed description of an error that was encountered during the task execution. You /// can use this information to help troubleshoot issues. /// /// public string ErrorDetail { get { return this._errorDetail; } set { this._errorDetail = value; } } // Check to see if ErrorDetail property is set internal bool IsSetErrorDetail() { return this._errorDetail != null; } /// /// Gets and sets the property Excludes. /// /// 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. /// /// 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 that was described. /// /// [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. /// /// The configuration options that control the behavior of the StartTaskExecution /// operation. Some options include preserving file or object metadata and verifying data /// integrity. /// /// /// /// You can override these options for each task execution. For more information, see /// StartTaskExecution. /// /// 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. /// /// The schedule used to periodically transfer files from a source to a destination location. /// /// 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 SourceLocationArn. /// /// The Amazon Resource Name (ARN) of the source file system's location. /// /// [AWSProperty(Max=128)] public string SourceLocationArn { get { return this._sourceLocationArn; } set { this._sourceLocationArn = value; } } // Check to see if SourceLocationArn property is set internal bool IsSetSourceLocationArn() { return this._sourceLocationArn != null; } /// /// Gets and sets the property SourceNetworkInterfaceArns. /// /// The Amazon Resource Names (ARNs) of the network interfaces created for your source /// location. For more information, see Network /// interface requirements. /// /// public List SourceNetworkInterfaceArns { get { return this._sourceNetworkInterfaceArns; } set { this._sourceNetworkInterfaceArns = value; } } // Check to see if SourceNetworkInterfaceArns property is set internal bool IsSetSourceNetworkInterfaceArns() { return this._sourceNetworkInterfaceArns != null && this._sourceNetworkInterfaceArns.Count > 0; } /// /// Gets and sets the property Status. /// /// The status of the task that was described. /// /// /// /// For detailed information about task execution statuses, see Understanding Task Statuses /// in the DataSync User Guide. /// /// public TaskStatus 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 TaskArn. /// /// The Amazon Resource Name (ARN) of the task that was described. /// /// [AWSProperty(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; } } }