AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListBonusPaymentsResult.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/memory/stl/AWSVector.h>
10#include <aws/mturk-requester/model/BonusPayment.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MTurk
26{
27namespace Model
28{
30 {
31 public:
32 AWS_MTURK_API ListBonusPaymentsResult();
35
36
38
42 inline int GetNumResults() const{ return m_numResults; }
43 inline void SetNumResults(int value) { m_numResults = value; }
44 inline ListBonusPaymentsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
46
48
49 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
51 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
52 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
53 inline ListBonusPaymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
54 inline ListBonusPaymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
55 inline ListBonusPaymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
57
59
63 inline const Aws::Vector<BonusPayment>& GetBonusPayments() const{ return m_bonusPayments; }
64 inline void SetBonusPayments(const Aws::Vector<BonusPayment>& value) { m_bonusPayments = value; }
65 inline void SetBonusPayments(Aws::Vector<BonusPayment>&& value) { m_bonusPayments = std::move(value); }
67 inline ListBonusPaymentsResult& WithBonusPayments(Aws::Vector<BonusPayment>&& value) { SetBonusPayments(std::move(value)); return *this;}
68 inline ListBonusPaymentsResult& AddBonusPayments(const BonusPayment& value) { m_bonusPayments.push_back(value); return *this; }
69 inline ListBonusPaymentsResult& AddBonusPayments(BonusPayment&& value) { m_bonusPayments.push_back(std::move(value)); return *this; }
71
73
74 inline const Aws::String& GetRequestId() const{ return m_requestId; }
75 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
76 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
77 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
78 inline ListBonusPaymentsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
79 inline ListBonusPaymentsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
80 inline ListBonusPaymentsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
82 private:
83
84 int m_numResults;
85
86 Aws::String m_nextToken;
87
88 Aws::Vector<BonusPayment> m_bonusPayments;
89
90 Aws::String m_requestId;
91 };
92
93} // namespace Model
94} // namespace MTurk
95} // namespace Aws
ListBonusPaymentsResult & WithBonusPayments(const Aws::Vector< BonusPayment > &value)
ListBonusPaymentsResult & AddBonusPayments(BonusPayment &&value)
ListBonusPaymentsResult & WithNextToken(Aws::String &&value)
void SetBonusPayments(Aws::Vector< BonusPayment > &&value)
ListBonusPaymentsResult & WithRequestId(Aws::String &&value)
ListBonusPaymentsResult & WithBonusPayments(Aws::Vector< BonusPayment > &&value)
AWS_MTURK_API ListBonusPaymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< BonusPayment > & GetBonusPayments() const
AWS_MTURK_API ListBonusPaymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListBonusPaymentsResult & WithNextToken(const Aws::String &value)
ListBonusPaymentsResult & WithNextToken(const char *value)
ListBonusPaymentsResult & WithRequestId(const char *value)
ListBonusPaymentsResult & AddBonusPayments(const BonusPayment &value)
void SetBonusPayments(const Aws::Vector< BonusPayment > &value)
ListBonusPaymentsResult & WithRequestId(const Aws::String &value)
ListBonusPaymentsResult & WithNumResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue