AWS SDK for C++  1.9.105
AWS SDK for C++
ApproveAssignmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MTurk
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
42 
47  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
48 
53  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
54 
59  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
60 
65  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
66 
71  inline ApproveAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
72 
77  inline ApproveAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
78 
83  inline ApproveAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
84 
85 
90  inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
91 
96  inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
97 
102  inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
103 
108  inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
109 
114  inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
115 
120  inline ApproveAssignmentRequest& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
121 
126  inline ApproveAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
127 
132  inline ApproveAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
133 
134 
139  inline bool GetOverrideRejection() const{ return m_overrideRejection; }
140 
145  inline bool OverrideRejectionHasBeenSet() const { return m_overrideRejectionHasBeenSet; }
146 
151  inline void SetOverrideRejection(bool value) { m_overrideRejectionHasBeenSet = true; m_overrideRejection = value; }
152 
157  inline ApproveAssignmentRequest& WithOverrideRejection(bool value) { SetOverrideRejection(value); return *this;}
158 
159  private:
160 
161  Aws::String m_assignmentId;
162  bool m_assignmentIdHasBeenSet;
163 
164  Aws::String m_requesterFeedback;
165  bool m_requesterFeedbackHasBeenSet;
166 
167  bool m_overrideRejection;
168  bool m_overrideRejectionHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace MTurk
173 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::ApproveAssignmentRequest::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: ApproveAssignmentRequest.h:41
Aws::MTurk::Model::ApproveAssignmentRequest::WithRequesterFeedback
ApproveAssignmentRequest & WithRequesterFeedback(Aws::String &&value)
Definition: ApproveAssignmentRequest.h:126
Aws::MTurk::Model::ApproveAssignmentRequest::OverrideRejectionHasBeenSet
bool OverrideRejectionHasBeenSet() const
Definition: ApproveAssignmentRequest.h:145
Aws::MTurk::Model::ApproveAssignmentRequest::WithRequesterFeedback
ApproveAssignmentRequest & WithRequesterFeedback(const Aws::String &value)
Definition: ApproveAssignmentRequest.h:120
Aws::MTurk::Model::ApproveAssignmentRequest
Definition: ApproveAssignmentRequest.h:22
Aws::MTurk::Model::ApproveAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ApproveAssignmentRequest.h:30
Aws::MTurk::Model::ApproveAssignmentRequest::GetOverrideRejection
bool GetOverrideRejection() const
Definition: ApproveAssignmentRequest.h:139
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::ApproveAssignmentRequest::WithAssignmentId
ApproveAssignmentRequest & WithAssignmentId(Aws::String &&value)
Definition: ApproveAssignmentRequest.h:77
Aws::MTurk::Model::ApproveAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(const char *value)
Definition: ApproveAssignmentRequest.h:114
MTurkRequest.h
Aws::MTurk::Model::ApproveAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(const Aws::String &value)
Definition: ApproveAssignmentRequest.h:102
Aws::MTurk::Model::ApproveAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(Aws::String &&value)
Definition: ApproveAssignmentRequest.h:108
Aws::MTurk::Model::ApproveAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::ApproveAssignmentRequest::WithRequesterFeedback
ApproveAssignmentRequest & WithRequesterFeedback(const char *value)
Definition: ApproveAssignmentRequest.h:132
Aws::MTurk::Model::ApproveAssignmentRequest::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: ApproveAssignmentRequest.h:65
AWSString.h
Aws::MTurk::Model::ApproveAssignmentRequest::WithAssignmentId
ApproveAssignmentRequest & WithAssignmentId(const Aws::String &value)
Definition: ApproveAssignmentRequest.h:71
Aws::MTurk::Model::ApproveAssignmentRequest::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: ApproveAssignmentRequest.h:47
Aws::MTurk::Model::ApproveAssignmentRequest::SetOverrideRejection
void SetOverrideRejection(bool value)
Definition: ApproveAssignmentRequest.h:151
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::ApproveAssignmentRequest::ApproveAssignmentRequest
ApproveAssignmentRequest()
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ApproveAssignmentRequest::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: ApproveAssignmentRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ApproveAssignmentRequest::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: ApproveAssignmentRequest.h:53
Aws::MTurk::Model::ApproveAssignmentRequest::WithAssignmentId
ApproveAssignmentRequest & WithAssignmentId(const char *value)
Definition: ApproveAssignmentRequest.h:83
Aws::MTurk::Model::ApproveAssignmentRequest::GetRequesterFeedback
const Aws::String & GetRequesterFeedback() const
Definition: ApproveAssignmentRequest.h:90
Aws::MTurk::Model::ApproveAssignmentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::ApproveAssignmentRequest::RequesterFeedbackHasBeenSet
bool RequesterFeedbackHasBeenSet() const
Definition: ApproveAssignmentRequest.h:96
Aws::MTurk::Model::ApproveAssignmentRequest::WithOverrideRejection
ApproveAssignmentRequest & WithOverrideRejection(bool value)
Definition: ApproveAssignmentRequest.h:157