AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApproveAssignmentRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace MTurk
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MTURK_API ApproveAssignmentRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ApproveAssignment"; }
31
32 AWS_MTURK_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
43 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
44 inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
45 inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
46 inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
47 inline ApproveAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
48 inline ApproveAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
49 inline ApproveAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
51
53
57 inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
58 inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
59 inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
60 inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
61 inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
63 inline ApproveAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
64 inline ApproveAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
66
68
72 inline bool GetOverrideRejection() const{ return m_overrideRejection; }
73 inline bool OverrideRejectionHasBeenSet() const { return m_overrideRejectionHasBeenSet; }
74 inline void SetOverrideRejection(bool value) { m_overrideRejectionHasBeenSet = true; m_overrideRejection = value; }
75 inline ApproveAssignmentRequest& WithOverrideRejection(bool value) { SetOverrideRejection(value); return *this;}
77 private:
78
79 Aws::String m_assignmentId;
80 bool m_assignmentIdHasBeenSet = false;
81
82 Aws::String m_requesterFeedback;
83 bool m_requesterFeedbackHasBeenSet = false;
84
85 bool m_overrideRejection;
86 bool m_overrideRejectionHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MTurk
91} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_MTURK_API Aws::String SerializePayload() const override
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ApproveAssignmentRequest & WithAssignmentId(Aws::String &&value)
ApproveAssignmentRequest & WithRequesterFeedback(Aws::String &&value)
ApproveAssignmentRequest & WithRequesterFeedback(const Aws::String &value)
ApproveAssignmentRequest & WithOverrideRejection(bool value)
ApproveAssignmentRequest & WithAssignmentId(const Aws::String &value)
ApproveAssignmentRequest & WithRequesterFeedback(const char *value)
ApproveAssignmentRequest & WithAssignmentId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String