/* * 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 sqs-2012-11-05.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.SQS.Model { /// /// Contains the details of a message movement task. /// public partial class ListMessageMoveTasksResultEntry { private long? _approximateNumberOfMessagesMoved; private long? _approximateNumberOfMessagesToMove; private string _destinationArn; private string _failureReason; private int? _maxNumberOfMessagesPerSecond; private string _sourceArn; private long? _startedTimestamp; private string _status; private string _taskHandle; /// /// Gets and sets the property ApproximateNumberOfMessagesMoved. /// /// The approximate number of messages already moved to the destination queue. /// /// public long ApproximateNumberOfMessagesMoved { get { return this._approximateNumberOfMessagesMoved.GetValueOrDefault(); } set { this._approximateNumberOfMessagesMoved = value; } } // Check to see if ApproximateNumberOfMessagesMoved property is set internal bool IsSetApproximateNumberOfMessagesMoved() { return this._approximateNumberOfMessagesMoved.HasValue; } /// /// Gets and sets the property ApproximateNumberOfMessagesToMove. /// /// The number of messages to be moved from the source queue. This number is obtained /// at the time of starting the message movement task. /// /// public long ApproximateNumberOfMessagesToMove { get { return this._approximateNumberOfMessagesToMove.GetValueOrDefault(); } set { this._approximateNumberOfMessagesToMove = value; } } // Check to see if ApproximateNumberOfMessagesToMove property is set internal bool IsSetApproximateNumberOfMessagesToMove() { return this._approximateNumberOfMessagesToMove.HasValue; } /// /// Gets and sets the property DestinationArn. /// /// The ARN of the destination queue if it has been specified in the StartMessageMoveTask /// request. If a DestinationArn has not been specified in the StartMessageMoveTask /// request, this field value will be NULL. /// /// public string DestinationArn { get { return this._destinationArn; } set { this._destinationArn = value; } } // Check to see if DestinationArn property is set internal bool IsSetDestinationArn() { return this._destinationArn != null; } /// /// Gets and sets the property FailureReason. /// /// The task failure reason (only included if the task status is FAILED). /// /// public string FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// /// Gets and sets the property MaxNumberOfMessagesPerSecond. /// /// The number of messages to be moved per second (the message movement rate), if it has /// been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond /// has not been specified in the StartMessageMoveTask request, this field /// value will be NULL. /// /// public int MaxNumberOfMessagesPerSecond { get { return this._maxNumberOfMessagesPerSecond.GetValueOrDefault(); } set { this._maxNumberOfMessagesPerSecond = value; } } // Check to see if MaxNumberOfMessagesPerSecond property is set internal bool IsSetMaxNumberOfMessagesPerSecond() { return this._maxNumberOfMessagesPerSecond.HasValue; } /// /// Gets and sets the property SourceArn. /// /// The ARN of the queue that contains the messages to be moved to another queue. /// /// public string SourceArn { get { return this._sourceArn; } set { this._sourceArn = value; } } // Check to see if SourceArn property is set internal bool IsSetSourceArn() { return this._sourceArn != null; } /// /// Gets and sets the property StartedTimestamp. /// /// The timestamp of starting the message movement task. /// /// public long StartedTimestamp { get { return this._startedTimestamp.GetValueOrDefault(); } set { this._startedTimestamp = value; } } // Check to see if StartedTimestamp property is set internal bool IsSetStartedTimestamp() { return this._startedTimestamp.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the message movement task. Possible values are: RUNNING, COMPLETED, /// CANCELLING, CANCELLED, and FAILED. /// /// 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 TaskHandle. /// /// An identifier associated with a message movement task. When this field is returned /// in the response of the ListMessageMoveTasks action, it is only populated /// for tasks that are in RUNNING status. /// /// public string TaskHandle { get { return this._taskHandle; } set { this._taskHandle = value; } } // Check to see if TaskHandle property is set internal bool IsSetTaskHandle() { return this._taskHandle != null; } } }