AWS SDK for C++  1.9.105
AWS SDK for C++
RejectAssignmentRequest.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 "RejectAssignment"; }
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 RejectAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
72 
77  inline RejectAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
78 
83  inline RejectAssignmentRequest& 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 RejectAssignmentRequest& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
121 
126  inline RejectAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
127 
132  inline RejectAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
133 
134  private:
135 
136  Aws::String m_assignmentId;
137  bool m_assignmentIdHasBeenSet;
138 
139  Aws::String m_requesterFeedback;
140  bool m_requesterFeedbackHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace MTurk
145 } // namespace Aws
Aws::MTurk::Model::RejectAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(const Aws::String &value)
Definition: RejectAssignmentRequest.h:102
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::RejectAssignmentRequest::RejectAssignmentRequest
RejectAssignmentRequest()
Aws::MTurk::Model::RejectAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(const char *value)
Definition: RejectAssignmentRequest.h:114
Aws::MTurk::Model::RejectAssignmentRequest::WithAssignmentId
RejectAssignmentRequest & WithAssignmentId(const char *value)
Definition: RejectAssignmentRequest.h:83
Aws::MTurk::Model::RejectAssignmentRequest::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: RejectAssignmentRequest.h:41
Aws::MTurk::Model::RejectAssignmentRequest
Definition: RejectAssignmentRequest.h:22
Aws::MTurk::Model::RejectAssignmentRequest::WithAssignmentId
RejectAssignmentRequest & WithAssignmentId(Aws::String &&value)
Definition: RejectAssignmentRequest.h:77
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::RejectAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::RejectAssignmentRequest::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: RejectAssignmentRequest.h:53
Aws::MTurk::Model::RejectAssignmentRequest::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: RejectAssignmentRequest.h:59
MTurkRequest.h
Aws::MTurk::Model::RejectAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RejectAssignmentRequest.h:30
AWSString.h
Aws::MTurk::Model::RejectAssignmentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::RejectAssignmentRequest::SetRequesterFeedback
void SetRequesterFeedback(Aws::String &&value)
Definition: RejectAssignmentRequest.h:108
Aws::MTurk::Model::RejectAssignmentRequest::WithAssignmentId
RejectAssignmentRequest & WithAssignmentId(const Aws::String &value)
Definition: RejectAssignmentRequest.h:71
Aws::MTurk::Model::RejectAssignmentRequest::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: RejectAssignmentRequest.h:47
Aws::MTurk::Model::RejectAssignmentRequest::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: RejectAssignmentRequest.h:65
MTurk_EXPORTS.h
Aws::MTurk::Model::RejectAssignmentRequest::WithRequesterFeedback
RejectAssignmentRequest & WithRequesterFeedback(Aws::String &&value)
Definition: RejectAssignmentRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::RejectAssignmentRequest::GetRequesterFeedback
const Aws::String & GetRequesterFeedback() const
Definition: RejectAssignmentRequest.h:90
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::RejectAssignmentRequest::WithRequesterFeedback
RejectAssignmentRequest & WithRequesterFeedback(const char *value)
Definition: RejectAssignmentRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::RejectAssignmentRequest::WithRequesterFeedback
RejectAssignmentRequest & WithRequesterFeedback(const Aws::String &value)
Definition: RejectAssignmentRequest.h:120
Aws::MTurk::Model::RejectAssignmentRequest::RequesterFeedbackHasBeenSet
bool RequesterFeedbackHasBeenSet() const
Definition: RejectAssignmentRequest.h:96