AWS SDK for C++  1.9.105
AWS SDK for C++
ListBonusPaymentsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace MTurk
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline int GetNumResults() const{ return m_numResults; }
42 
47  inline void SetNumResults(int value) { m_numResults = value; }
48 
53  inline ListBonusPaymentsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
54 
55 
56 
57  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
58 
59 
60  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
61 
62 
63  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
64 
65 
66  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
67 
68 
69  inline ListBonusPaymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 
71 
72  inline ListBonusPaymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
74 
75  inline ListBonusPaymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76 
77 
82  inline const Aws::Vector<BonusPayment>& GetBonusPayments() const{ return m_bonusPayments; }
83 
88  inline void SetBonusPayments(const Aws::Vector<BonusPayment>& value) { m_bonusPayments = value; }
89 
94  inline void SetBonusPayments(Aws::Vector<BonusPayment>&& value) { m_bonusPayments = std::move(value); }
95 
100  inline ListBonusPaymentsResult& WithBonusPayments(const Aws::Vector<BonusPayment>& value) { SetBonusPayments(value); return *this;}
101 
106  inline ListBonusPaymentsResult& WithBonusPayments(Aws::Vector<BonusPayment>&& value) { SetBonusPayments(std::move(value)); return *this;}
107 
112  inline ListBonusPaymentsResult& AddBonusPayments(const BonusPayment& value) { m_bonusPayments.push_back(value); return *this; }
113 
118  inline ListBonusPaymentsResult& AddBonusPayments(BonusPayment&& value) { m_bonusPayments.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  int m_numResults;
123 
124  Aws::String m_nextToken;
125 
126  Aws::Vector<BonusPayment> m_bonusPayments;
127  };
128 
129 } // namespace Model
130 } // namespace MTurk
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::ListBonusPaymentsResult
Definition: ListBonusPaymentsResult.h:30
Aws::MTurk::Model::ListBonusPaymentsResult::WithNextToken
ListBonusPaymentsResult & WithNextToken(const char *value)
Definition: ListBonusPaymentsResult.h:75
Aws::MTurk::Model::ListBonusPaymentsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListBonusPaymentsResult.h:66
Aws::MTurk::Model::ListBonusPaymentsResult::operator=
ListBonusPaymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListBonusPaymentsResult::WithNextToken
ListBonusPaymentsResult & WithNextToken(Aws::String &&value)
Definition: ListBonusPaymentsResult.h:72
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListBonusPaymentsResult::WithBonusPayments
ListBonusPaymentsResult & WithBonusPayments(Aws::Vector< BonusPayment > &&value)
Definition: ListBonusPaymentsResult.h:106
Aws::MTurk::Model::ListBonusPaymentsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListBonusPaymentsResult.h:63
AWSVector.h
Aws::MTurk::Model::ListBonusPaymentsResult::WithNumResults
ListBonusPaymentsResult & WithNumResults(int value)
Definition: ListBonusPaymentsResult.h:53
Aws::MTurk::Model::ListBonusPaymentsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListBonusPaymentsResult.h:57
BonusPayment.h
Aws::MTurk::Model::ListBonusPaymentsResult::ListBonusPaymentsResult
ListBonusPaymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListBonusPaymentsResult::WithNextToken
ListBonusPaymentsResult & WithNextToken(const Aws::String &value)
Definition: ListBonusPaymentsResult.h:69
AWSString.h
Aws::MTurk::Model::ListBonusPaymentsResult::SetBonusPayments
void SetBonusPayments(Aws::Vector< BonusPayment > &&value)
Definition: ListBonusPaymentsResult.h:94
Aws::MTurk::Model::ListBonusPaymentsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListBonusPaymentsResult.h:60
Aws::MTurk::Model::BonusPayment
Definition: BonusPayment.h:34
Aws::MTurk::Model::ListBonusPaymentsResult::GetNumResults
int GetNumResults() const
Definition: ListBonusPaymentsResult.h:41
Aws::MTurk::Model::ListBonusPaymentsResult::AddBonusPayments
ListBonusPaymentsResult & AddBonusPayments(const BonusPayment &value)
Definition: ListBonusPaymentsResult.h:112
MTurk_EXPORTS.h
Aws::MTurk::Model::ListBonusPaymentsResult::SetBonusPayments
void SetBonusPayments(const Aws::Vector< BonusPayment > &value)
Definition: ListBonusPaymentsResult.h:88
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListBonusPaymentsResult::ListBonusPaymentsResult
ListBonusPaymentsResult()
Aws::MTurk::Model::ListBonusPaymentsResult::WithBonusPayments
ListBonusPaymentsResult & WithBonusPayments(const Aws::Vector< BonusPayment > &value)
Definition: ListBonusPaymentsResult.h:100
Aws::MTurk::Model::ListBonusPaymentsResult::AddBonusPayments
ListBonusPaymentsResult & AddBonusPayments(BonusPayment &&value)
Definition: ListBonusPaymentsResult.h:118
Aws::MTurk::Model::ListBonusPaymentsResult::GetBonusPayments
const Aws::Vector< BonusPayment > & GetBonusPayments() const
Definition: ListBonusPaymentsResult.h:82
Aws::MTurk::Model::ListBonusPaymentsResult::SetNumResults
void SetNumResults(int value)
Definition: ListBonusPaymentsResult.h:47