AWS SDK for C++  1.9.157
AWS SDK for C++
ListTypesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace AppSync
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListTypes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetApiId() const{ return m_apiId; }
46 
50  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
51 
55  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
56 
60  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
61 
65  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
66 
70  inline ListTypesRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
71 
75  inline ListTypesRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
76 
80  inline ListTypesRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
81 
82 
86  inline const TypeDefinitionFormat& GetFormat() const{ return m_format; }
87 
91  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
92 
96  inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; }
97 
101  inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
102 
106  inline ListTypesRequest& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;}
107 
111  inline ListTypesRequest& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;}
112 
113 
118  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
119 
124  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 
130  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
131 
136  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 
142  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
143 
148  inline ListTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
149 
154  inline ListTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
155 
160  inline ListTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
161 
162 
166  inline int GetMaxResults() const{ return m_maxResults; }
167 
171  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
172 
176  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
177 
181  inline ListTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
182 
183  private:
184 
185  Aws::String m_apiId;
186  bool m_apiIdHasBeenSet;
187 
188  TypeDefinitionFormat m_format;
189  bool m_formatHasBeenSet;
190 
191  Aws::String m_nextToken;
192  bool m_nextTokenHasBeenSet;
193 
194  int m_maxResults;
195  bool m_maxResultsHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace AppSync
200 } // namespace Aws
Aws::AppSync::Model::ListTypesRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: ListTypesRequest.h:50
Aws::AppSync::Model::ListTypesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTypesRequest.h:130
Aws::Http::URI
Definition: URI.h:32
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::ListTypesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AppSync::Model::ListTypesRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: ListTypesRequest.h:55
Aws::AppSync::Model::ListTypesRequest::ListTypesRequest
ListTypesRequest()
Aws::AppSync::Model::ListTypesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTypesRequest.h:166
Aws::AppSync::Model::ListTypesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTypesRequest.h:171
Aws::AppSync::Model::ListTypesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTypesRequest.h:35
Aws::AppSync::Model::ListTypesRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: ListTypesRequest.h:60
Aws::AppSync::Model::ListTypesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::ListTypesRequest::WithApiId
ListTypesRequest & WithApiId(const Aws::String &value)
Definition: ListTypesRequest.h:70
Aws::AppSync::Model::ListTypesRequest::WithNextToken
ListTypesRequest & WithNextToken(const char *value)
Definition: ListTypesRequest.h:160
AppSync_EXPORTS.h
Aws::AppSync::Model::ListTypesRequest::WithNextToken
ListTypesRequest & WithNextToken(const Aws::String &value)
Definition: ListTypesRequest.h:148
Aws::AppSync::Model::ListTypesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTypesRequest.h:136
Aws::AppSync::Model::ListTypesRequest
Definition: ListTypesRequest.h:27
Aws::AppSync::Model::ListTypesRequest::WithFormat
ListTypesRequest & WithFormat(TypeDefinitionFormat &&value)
Definition: ListTypesRequest.h:111
Aws::AppSync::Model::ListTypesRequest::WithApiId
ListTypesRequest & WithApiId(const char *value)
Definition: ListTypesRequest.h:80
Aws::AppSync::Model::ListTypesRequest::WithNextToken
ListTypesRequest & WithNextToken(Aws::String &&value)
Definition: ListTypesRequest.h:154
Aws::AppSync::Model::ListTypesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTypesRequest.h:142
Aws::AppSync::Model::ListTypesRequest::WithFormat
ListTypesRequest & WithFormat(const TypeDefinitionFormat &value)
Definition: ListTypesRequest.h:106
Aws::AppSync::Model::ListTypesRequest::SetApiId
void SetApiId(const char *value)
Definition: ListTypesRequest.h:65
Aws::AppSync::Model::ListTypesRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: ListTypesRequest.h:91
TypeDefinitionFormat.h
Aws::AppSync::Model::ListTypesRequest::GetApiId
const Aws::String & GetApiId() const
Definition: ListTypesRequest.h:45
AWSString.h
Aws::AppSync::Model::TypeDefinitionFormat
TypeDefinitionFormat
Definition: TypeDefinitionFormat.h:17
Aws::AppSync::Model::ListTypesRequest::WithApiId
ListTypesRequest & WithApiId(Aws::String &&value)
Definition: ListTypesRequest.h:75
Aws::AppSync::Model::ListTypesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTypesRequest.h:176
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::ListTypesRequest::GetFormat
const TypeDefinitionFormat & GetFormat() const
Definition: ListTypesRequest.h:86
Aws::AppSync::Model::ListTypesRequest::WithMaxResults
ListTypesRequest & WithMaxResults(int value)
Definition: ListTypesRequest.h:181
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::ListTypesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTypesRequest.h:118
Aws::AppSync::Model::ListTypesRequest::SetFormat
void SetFormat(TypeDefinitionFormat &&value)
Definition: ListTypesRequest.h:101
Aws::AppSync::Model::ListTypesRequest::SetFormat
void SetFormat(const TypeDefinitionFormat &value)
Definition: ListTypesRequest.h:96
Aws::AppSync::Model::ListTypesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTypesRequest.h:124