AWS SDK for C++

AWS SDK for C++ Version 1.11.760

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