AWS SDK for C++  1.9.106
AWS SDK for C++
ListModelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace LookoutforVision
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListModels"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetProjectName() const{ return m_projectName; }
46 
51  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
52 
57  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
58 
63  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
64 
69  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
70 
75  inline ListModelsRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
76 
81  inline ListModelsRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
82 
87  inline ListModelsRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
88 
89 
95  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
96 
102  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 
109  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
110 
116  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
117 
123  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 
130  inline ListModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
137  inline ListModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
138 
144  inline ListModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
145 
146 
152  inline int GetMaxResults() const{ return m_maxResults; }
153 
159  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
160 
166  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
167 
173  inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
174 
175  private:
176 
177  Aws::String m_projectName;
178  bool m_projectNameHasBeenSet;
179 
180  Aws::String m_nextToken;
181  bool m_nextTokenHasBeenSet;
182 
183  int m_maxResults;
184  bool m_maxResultsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace LookoutforVision
189 } // namespace Aws
Aws::LookoutforVision::Model::ListModelsRequest::WithProjectName
ListModelsRequest & WithProjectName(const char *value)
Definition: ListModelsRequest.h:87
Aws::Http::URI
Definition: URI.h:32
LookoutforVisionRequest.h
Aws::LookoutforVision::Model::ListModelsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListModelsRequest.h:166
Aws::LookoutforVision::Model::ListModelsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListModelsRequest.h:95
Aws::LookoutforVision::Model::ListModelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::ListModelsRequest::WithNextToken
ListModelsRequest & WithNextToken(Aws::String &&value)
Definition: ListModelsRequest.h:137
Aws::LookoutforVision::Model::ListModelsRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: ListModelsRequest.h:51
Aws::LookoutforVision::Model::ListModelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListModelsRequest.h:34
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::ListModelsRequest::WithNextToken
ListModelsRequest & WithNextToken(const char *value)
Definition: ListModelsRequest.h:144
Aws::LookoutforVision::Model::ListModelsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListModelsRequest.h:123
Aws::LookoutforVision::Model::ListModelsRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: ListModelsRequest.h:63
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::ListModelsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListModelsRequest.h:116
Aws::LookoutforVision::Model::ListModelsRequest::WithMaxResults
ListModelsRequest & WithMaxResults(int value)
Definition: ListModelsRequest.h:173
Aws::LookoutforVision::Model::ListModelsRequest::WithProjectName
ListModelsRequest & WithProjectName(const Aws::String &value)
Definition: ListModelsRequest.h:75
Aws::LookoutforVision::Model::ListModelsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListModelsRequest.h:159
Aws::LookoutforVision::Model::ListModelsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListModelsRequest.h:109
Aws::LookoutforVision::Model::ListModelsRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: ListModelsRequest.h:57
AWSString.h
Aws::LookoutforVision::Model::ListModelsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::LookoutforVision::Model::ListModelsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListModelsRequest.h:152
Aws::LookoutforVision::Model::ListModelsRequest::WithProjectName
ListModelsRequest & WithProjectName(Aws::String &&value)
Definition: ListModelsRequest.h:81
Aws::LookoutforVision::Model::ListModelsRequest::ListModelsRequest
ListModelsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::ListModelsRequest::SetProjectName
void SetProjectName(const char *value)
Definition: ListModelsRequest.h:69
Aws::LookoutforVision::Model::ListModelsRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: ListModelsRequest.h:45
Aws::LookoutforVision::Model::ListModelsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListModelsRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::ListModelsRequest::WithNextToken
ListModelsRequest & WithNextToken(const Aws::String &value)
Definition: ListModelsRequest.h:130
Aws::LookoutforVision::Model::ListModelsRequest
Definition: ListModelsRequest.h:26