AWS SDK for C++  1.9.153
AWS SDK for C++
ListTypesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/appsync/model/Type.h>
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 AppSync
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Type>& GetTypes() const{ return m_types; }
41 
45  inline void SetTypes(const Aws::Vector<Type>& value) { m_types = value; }
46 
50  inline void SetTypes(Aws::Vector<Type>&& value) { m_types = std::move(value); }
51 
55  inline ListTypesResult& WithTypes(const Aws::Vector<Type>& value) { SetTypes(value); return *this;}
56 
60  inline ListTypesResult& WithTypes(Aws::Vector<Type>&& value) { SetTypes(std::move(value)); return *this;}
61 
65  inline ListTypesResult& AddTypes(const Type& value) { m_types.push_back(value); return *this; }
66 
70  inline ListTypesResult& AddTypes(Type&& value) { m_types.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListTypesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListTypesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListTypesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Type> m_types;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace AppSync
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AppSync::Model::ListTypesResult
Definition: ListTypesResult.h:30
Aws::AppSync::Model::ListTypesResult::AddTypes
ListTypesResult & AddTypes(const Type &value)
Definition: ListTypesResult.h:65
Aws::AppSync::Model::ListTypesResult::operator=
ListTypesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AppSync::Model::ListTypesResult::WithNextToken
ListTypesResult & WithNextToken(const Aws::String &value)
Definition: ListTypesResult.h:101
Aws::AppSync::Model::ListTypesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTypesResult.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppSync::Model::ListTypesResult::AddTypes
ListTypesResult & AddTypes(Type &&value)
Definition: ListTypesResult.h:70
Aws::AppSync::Model::ListTypesResult::ListTypesResult
ListTypesResult()
AppSync_EXPORTS.h
Aws::AppSync::Model::ListTypesResult::ListTypesResult
ListTypesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::AppSync::Model::ListTypesResult::SetTypes
void SetTypes(const Aws::Vector< Type > &value)
Definition: ListTypesResult.h:45
Aws::AppSync::Model::ListTypesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTypesResult.h:95
Aws::AppSync::Model::ListTypesResult::WithNextToken
ListTypesResult & WithNextToken(Aws::String &&value)
Definition: ListTypesResult.h:107
Aws::AppSync::Model::ListTypesResult::WithNextToken
ListTypesResult & WithNextToken(const char *value)
Definition: ListTypesResult.h:113
Type.h
Aws::AppSync::Model::ListTypesResult::WithTypes
ListTypesResult & WithTypes(const Aws::Vector< Type > &value)
Definition: ListTypesResult.h:55
Aws::AppSync::Model::ListTypesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTypesResult.h:83
AWSString.h
Aws::AppSync::Model::Type
Definition: Type.h:33
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::ListTypesResult::GetTypes
const Aws::Vector< Type > & GetTypes() const
Definition: ListTypesResult.h:40
Aws::AppSync::Model::ListTypesResult::WithTypes
ListTypesResult & WithTypes(Aws::Vector< Type > &&value)
Definition: ListTypesResult.h:60
Aws::AppSync::Model::ListTypesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTypesResult.h:89
Aws::AppSync::Model::ListTypesResult::SetTypes
void SetTypes(Aws::Vector< Type > &&value)
Definition: ListTypesResult.h:50