AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BonusPayment.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MTurk
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MTURK_API BonusPayment();
37 AWS_MTURK_API BonusPayment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
47 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
48 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
49 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
50 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
51 inline BonusPayment& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
52 inline BonusPayment& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
53 inline BonusPayment& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
55
57
58 inline const Aws::String& GetBonusAmount() const{ return m_bonusAmount; }
59 inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; }
60 inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; }
61 inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); }
62 inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); }
63 inline BonusPayment& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;}
64 inline BonusPayment& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;}
65 inline BonusPayment& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;}
67
69
72 inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
73 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
74 inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
75 inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
76 inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
77 inline BonusPayment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
78 inline BonusPayment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
79 inline BonusPayment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
81
83
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 BonusPayment& WithReason(const Aws::String& value) { SetReason(value); return *this;}
92 inline BonusPayment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
93 inline BonusPayment& WithReason(const char* value) { SetReason(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetGrantTime() const{ return m_grantTime; }
101 inline bool GrantTimeHasBeenSet() const { return m_grantTimeHasBeenSet; }
102 inline void SetGrantTime(const Aws::Utils::DateTime& value) { m_grantTimeHasBeenSet = true; m_grantTime = value; }
103 inline void SetGrantTime(Aws::Utils::DateTime&& value) { m_grantTimeHasBeenSet = true; m_grantTime = std::move(value); }
104 inline BonusPayment& WithGrantTime(const Aws::Utils::DateTime& value) { SetGrantTime(value); return *this;}
105 inline BonusPayment& WithGrantTime(Aws::Utils::DateTime&& value) { SetGrantTime(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_workerId;
110 bool m_workerIdHasBeenSet = false;
111
112 Aws::String m_bonusAmount;
113 bool m_bonusAmountHasBeenSet = false;
114
115 Aws::String m_assignmentId;
116 bool m_assignmentIdHasBeenSet = false;
117
118 Aws::String m_reason;
119 bool m_reasonHasBeenSet = false;
120
121 Aws::Utils::DateTime m_grantTime;
122 bool m_grantTimeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace MTurk
127} // namespace Aws
BonusPayment & WithGrantTime(Aws::Utils::DateTime &&value)
BonusPayment & WithReason(const char *value)
BonusPayment & WithBonusAmount(Aws::String &&value)
BonusPayment & WithGrantTime(const Aws::Utils::DateTime &value)
void SetAssignmentId(Aws::String &&value)
AWS_MTURK_API BonusPayment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetGrantTime() const
void SetBonusAmount(Aws::String &&value)
BonusPayment & WithReason(const Aws::String &value)
const Aws::String & GetAssignmentId() const
void SetAssignmentId(const char *value)
void SetWorkerId(Aws::String &&value)
const Aws::String & GetBonusAmount() const
const Aws::String & GetReason() const
void SetBonusAmount(const Aws::String &value)
BonusPayment & WithBonusAmount(const char *value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGrantTime(const Aws::Utils::DateTime &value)
void SetReason(Aws::String &&value)
AWS_MTURK_API BonusPayment(Aws::Utils::Json::JsonView jsonValue)
void SetReason(const char *value)
BonusPayment & WithAssignmentId(const char *value)
BonusPayment & WithWorkerId(Aws::String &&value)
void SetWorkerId(const Aws::String &value)
void SetGrantTime(Aws::Utils::DateTime &&value)
BonusPayment & WithBonusAmount(const Aws::String &value)
void SetAssignmentId(const Aws::String &value)
BonusPayment & WithWorkerId(const char *value)
BonusPayment & WithWorkerId(const Aws::String &value)
BonusPayment & WithReason(Aws::String &&value)
BonusPayment & WithAssignmentId(Aws::String &&value)
void SetBonusAmount(const char *value)
const Aws::String & GetWorkerId() const
void SetReason(const Aws::String &value)
BonusPayment & WithAssignmentId(const Aws::String &value)
void SetWorkerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue