AWS SDK for C++  1.9.106
AWS SDK for C++
ListQualificationTypesResult.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 ListQualificationTypesResult& 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 ListQualificationTypesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 
71 
72  inline ListQualificationTypesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
74 
75  inline ListQualificationTypesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76 
77 
81  inline const Aws::Vector<QualificationType>& GetQualificationTypes() const{ return m_qualificationTypes; }
82 
86  inline void SetQualificationTypes(const Aws::Vector<QualificationType>& value) { m_qualificationTypes = value; }
87 
91  inline void SetQualificationTypes(Aws::Vector<QualificationType>&& value) { m_qualificationTypes = std::move(value); }
92 
96  inline ListQualificationTypesResult& WithQualificationTypes(const Aws::Vector<QualificationType>& value) { SetQualificationTypes(value); return *this;}
97 
101  inline ListQualificationTypesResult& WithQualificationTypes(Aws::Vector<QualificationType>&& value) { SetQualificationTypes(std::move(value)); return *this;}
102 
106  inline ListQualificationTypesResult& AddQualificationTypes(const QualificationType& value) { m_qualificationTypes.push_back(value); return *this; }
107 
111  inline ListQualificationTypesResult& AddQualificationTypes(QualificationType&& value) { m_qualificationTypes.push_back(std::move(value)); return *this; }
112 
113  private:
114 
115  int m_numResults;
116 
117  Aws::String m_nextToken;
118 
119  Aws::Vector<QualificationType> m_qualificationTypes;
120  };
121 
122 } // namespace Model
123 } // namespace MTurk
124 } // namespace Aws
Aws::MTurk::Model::ListQualificationTypesResult::GetNumResults
int GetNumResults() const
Definition: ListQualificationTypesResult.h:41
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::ListQualificationTypesResult::WithNextToken
ListQualificationTypesResult & WithNextToken(const Aws::String &value)
Definition: ListQualificationTypesResult.h:69
Aws::MTurk::Model::ListQualificationTypesResult::WithNextToken
ListQualificationTypesResult & WithNextToken(const char *value)
Definition: ListQualificationTypesResult.h:75
Aws::MTurk::Model::ListQualificationTypesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListQualificationTypesResult.h:66
Aws::MTurk::Model::ListQualificationTypesResult::WithNextToken
ListQualificationTypesResult & WithNextToken(Aws::String &&value)
Definition: ListQualificationTypesResult.h:72
QualificationType.h
Aws::MTurk::Model::ListQualificationTypesResult::SetQualificationTypes
void SetQualificationTypes(Aws::Vector< QualificationType > &&value)
Definition: ListQualificationTypesResult.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListQualificationTypesResult::ListQualificationTypesResult
ListQualificationTypesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListQualificationTypesResult::operator=
ListQualificationTypesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::MTurk::Model::ListQualificationTypesResult::WithQualificationTypes
ListQualificationTypesResult & WithQualificationTypes(Aws::Vector< QualificationType > &&value)
Definition: ListQualificationTypesResult.h:101
Aws::MTurk::Model::ListQualificationTypesResult::WithQualificationTypes
ListQualificationTypesResult & WithQualificationTypes(const Aws::Vector< QualificationType > &value)
Definition: ListQualificationTypesResult.h:96
Aws::MTurk::Model::QualificationType
Definition: QualificationType.h:38
Aws::MTurk::Model::ListQualificationTypesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListQualificationTypesResult.h:60
Aws::MTurk::Model::ListQualificationTypesResult::AddQualificationTypes
ListQualificationTypesResult & AddQualificationTypes(QualificationType &&value)
Definition: ListQualificationTypesResult.h:111
AWSString.h
Aws::MTurk::Model::ListQualificationTypesResult::SetNumResults
void SetNumResults(int value)
Definition: ListQualificationTypesResult.h:47
Aws::MTurk::Model::ListQualificationTypesResult
Definition: ListQualificationTypesResult.h:30
MTurk_EXPORTS.h
Aws::MTurk::Model::ListQualificationTypesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListQualificationTypesResult.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::ListQualificationTypesResult::AddQualificationTypes
ListQualificationTypesResult & AddQualificationTypes(const QualificationType &value)
Definition: ListQualificationTypesResult.h:106
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ListQualificationTypesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListQualificationTypesResult.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListQualificationTypesResult::GetQualificationTypes
const Aws::Vector< QualificationType > & GetQualificationTypes() const
Definition: ListQualificationTypesResult.h:81
Aws::MTurk::Model::ListQualificationTypesResult::SetQualificationTypes
void SetQualificationTypes(const Aws::Vector< QualificationType > &value)
Definition: ListQualificationTypesResult.h:86
Aws::MTurk::Model::ListQualificationTypesResult::WithNumResults
ListQualificationTypesResult & WithNumResults(int value)
Definition: ListQualificationTypesResult.h:53
Aws::MTurk::Model::ListQualificationTypesResult::ListQualificationTypesResult
ListQualificationTypesResult()