/*
* 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 mturk-requester-2017-01-17.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.MTurk.Model
{
///
/// Container for the parameters to the ApproveAssignment operation.
/// The ApproveAssignment
operation approves the results of a completed
/// assignment.
///
///
///
/// Approving an assignment initiates two payments from the Requester's Amazon.com account
///
///
/// -
///
/// The Worker who submitted the results is paid the reward specified in the HIT.
///
///
-
///
/// Amazon Mechanical Turk fees are debited.
///
///
///
/// If the Requester's account does not have adequate funds for these payments, the call
/// to ApproveAssignment returns an exception, and the approval is not processed. You
/// can include an optional feedback message with the approval, which the Worker can see
/// in the Status section of the web site.
///
///
///
/// You can also call this operation for assignments that were previous rejected and
/// approve them by explicitly overriding the previous rejection. This only works on rejected
/// assignments that were submitted within the previous 30 days and only if the assignment's
/// related HIT has not been deleted.
///
///
public partial class ApproveAssignmentRequest : AmazonMTurkRequest
{
private string _assignmentId;
private bool? _overrideRejection;
private string _requesterFeedback;
///
/// Gets and sets the property AssignmentId.
///
/// The ID of the assignment. The assignment must correspond to a HIT created by the
/// Requester.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string AssignmentId
{
get { return this._assignmentId; }
set { this._assignmentId = value; }
}
// Check to see if AssignmentId property is set
internal bool IsSetAssignmentId()
{
return this._assignmentId != null;
}
///
/// Gets and sets the property OverrideRejection.
///
/// A flag indicating that an assignment should be approved even if it was previously
/// rejected. Defaults to False
.
///
///
public bool OverrideRejection
{
get { return this._overrideRejection.GetValueOrDefault(); }
set { this._overrideRejection = value; }
}
// Check to see if OverrideRejection property is set
internal bool IsSetOverrideRejection()
{
return this._overrideRejection.HasValue;
}
///
/// Gets and sets the property RequesterFeedback.
///
/// A message for the Worker, which the Worker can see in the Status section of the web
/// site.
///
///
public string RequesterFeedback
{
get { return this._requesterFeedback; }
set { this._requesterFeedback = value; }
}
// Check to see if RequesterFeedback property is set
internal bool IsSetRequesterFeedback()
{
return this._requesterFeedback != null;
}
}
}