/* * 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 { /// /// Container for the parameters to the StartMessageMoveTask operation. /// Starts an asynchronous task to move messages from a specified source queue to a specified /// destination queue. /// /// /// public partial class StartMessageMoveTaskRequest : AmazonSQSRequest { private string _destinationArn; private int? _maxNumberOfMessagesPerSecond; private string _sourceArn; /// /// Gets and sets the property DestinationArn. /// /// The ARN of the queue that receives the moved messages. You can use this field to specify /// the destination queue where you would like to redrive messages. If this field is left /// blank, the messages will be redriven back to their respective original source queues. /// /// 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 MaxNumberOfMessagesPerSecond. /// /// The number of messages to be moved per second (the message movement rate). You can /// use this field to define a fixed message movement rate. The maximum value for messages /// per second is 500. If this field is left blank, the system will optimize the rate /// based on the queue message backlog size, which may vary throughout the duration of /// the message movement task. /// /// 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. Currently, /// only ARNs of dead-letter queues (DLQs) whose sources are other Amazon SQS queues are /// accepted. DLQs whose sources are non-SQS queues, such as Lambda or Amazon SNS topics, /// are not currently supported. /// /// [AWSProperty(Required=true)] 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; } } }