AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendBonusRequest.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 SendBonusRequest();
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 "SendBonus"; }
31
32 AWS_MTURK_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
42 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
43 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
44 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
45 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
46 inline SendBonusRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
47 inline SendBonusRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
48 inline SendBonusRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
50
52
57 inline const Aws::String& GetBonusAmount() const{ return m_bonusAmount; }
58 inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; }
59 inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; }
60 inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); }
61 inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); }
62 inline SendBonusRequest& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;}
63 inline SendBonusRequest& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;}
64 inline SendBonusRequest& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;}
66
68
71 inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
72 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
73 inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
74 inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
75 inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
76 inline SendBonusRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
77 inline SendBonusRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
78 inline SendBonusRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
80
82
86 inline const Aws::String& GetReason() const{ return m_reason; }
87 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
88 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
89 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
90 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
91 inline SendBonusRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
92 inline SendBonusRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
93 inline SendBonusRequest& WithReason(const char* value) { SetReason(value); return *this;}
95
97
105 inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
106 inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
107 inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
108 inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
109 inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
110 inline SendBonusRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
111 inline SendBonusRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
112 inline SendBonusRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
114 private:
115
116 Aws::String m_workerId;
117 bool m_workerIdHasBeenSet = false;
118
119 Aws::String m_bonusAmount;
120 bool m_bonusAmountHasBeenSet = false;
121
122 Aws::String m_assignmentId;
123 bool m_assignmentIdHasBeenSet = false;
124
125 Aws::String m_reason;
126 bool m_reasonHasBeenSet = false;
127
128 Aws::String m_uniqueRequestToken;
129 bool m_uniqueRequestTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace MTurk
134} // namespace Aws
SendBonusRequest & WithUniqueRequestToken(const Aws::String &value)
void SetWorkerId(const char *value)
void SetUniqueRequestToken(const char *value)
void SetAssignmentId(Aws::String &&value)
void SetUniqueRequestToken(Aws::String &&value)
void SetAssignmentId(const Aws::String &value)
SendBonusRequest & WithWorkerId(const char *value)
void SetBonusAmount(Aws::String &&value)
SendBonusRequest & WithBonusAmount(Aws::String &&value)
const Aws::String & GetWorkerId() const
const Aws::String & GetAssignmentId() const
void SetAssignmentId(const char *value)
void SetWorkerId(Aws::String &&value)
const Aws::String & GetUniqueRequestToken() const
SendBonusRequest & WithBonusAmount(const char *value)
AWS_MTURK_API Aws::String SerializePayload() const override
void SetReason(const Aws::String &value)
void SetUniqueRequestToken(const Aws::String &value)
const Aws::String & GetReason() const
void SetWorkerId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SendBonusRequest & WithUniqueRequestToken(Aws::String &&value)
SendBonusRequest & WithReason(const Aws::String &value)
SendBonusRequest & WithAssignmentId(const Aws::String &value)
SendBonusRequest & WithAssignmentId(Aws::String &&value)
SendBonusRequest & WithUniqueRequestToken(const char *value)
SendBonusRequest & WithReason(Aws::String &&value)
void SetReason(Aws::String &&value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendBonusRequest & WithReason(const char *value)
void SetBonusAmount(const char *value)
SendBonusRequest & WithBonusAmount(const Aws::String &value)
SendBonusRequest & WithWorkerId(const Aws::String &value)
SendBonusRequest & WithAssignmentId(const char *value)
SendBonusRequest & WithWorkerId(Aws::String &&value)
void SetBonusAmount(const Aws::String &value)
const Aws::String & GetBonusAmount() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String