1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/lookoutvision/LookoutforVision_EXPORTS.h>
8 #include <aws/lookoutvision/LookoutforVisionRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
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 
23   /**
24    */
25   class AWS_LOOKOUTFORVISION_API ListModelsRequest : public LookoutforVisionRequest
26   {
27   public:
28     ListModelsRequest();
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.
GetServiceRequestName()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 
41     /**
42      * <p>The name of the project that contains the model versions that you want to
43      * list.</p>
44      */
GetProjectName()45     inline const Aws::String& GetProjectName() const{ return m_projectName; }
46 
47     /**
48      * <p>The name of the project that contains the model versions that you want to
49      * list.</p>
50      */
ProjectNameHasBeenSet()51     inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
52 
53     /**
54      * <p>The name of the project that contains the model versions that you want to
55      * list.</p>
56      */
SetProjectName(const Aws::String & value)57     inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
58 
59     /**
60      * <p>The name of the project that contains the model versions that you want to
61      * list.</p>
62      */
SetProjectName(Aws::String && value)63     inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
64 
65     /**
66      * <p>The name of the project that contains the model versions that you want to
67      * list.</p>
68      */
SetProjectName(const char * value)69     inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
70 
71     /**
72      * <p>The name of the project that contains the model versions that you want to
73      * list.</p>
74      */
WithProjectName(const Aws::String & value)75     inline ListModelsRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
76 
77     /**
78      * <p>The name of the project that contains the model versions that you want to
79      * list.</p>
80      */
WithProjectName(Aws::String && value)81     inline ListModelsRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
82 
83     /**
84      * <p>The name of the project that contains the model versions that you want to
85      * list.</p>
86      */
WithProjectName(const char * value)87     inline ListModelsRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
88 
89 
90     /**
91      * <p>If the previous response was incomplete (because there is more data to
92      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
93      * You can use this pagination token to retrieve the next set of models.</p>
94      */
GetNextToken()95     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
96 
97     /**
98      * <p>If the previous response was incomplete (because there is more data to
99      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
100      * You can use this pagination token to retrieve the next set of models.</p>
101      */
NextTokenHasBeenSet()102     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 
104     /**
105      * <p>If the previous response was incomplete (because there is more data to
106      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
107      * You can use this pagination token to retrieve the next set of models.</p>
108      */
SetNextToken(const Aws::String & value)109     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
110 
111     /**
112      * <p>If the previous response was incomplete (because there is more data to
113      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
114      * You can use this pagination token to retrieve the next set of models.</p>
115      */
SetNextToken(Aws::String && value)116     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
117 
118     /**
119      * <p>If the previous response was incomplete (because there is more data to
120      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
121      * You can use this pagination token to retrieve the next set of models.</p>
122      */
SetNextToken(const char * value)123     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 
125     /**
126      * <p>If the previous response was incomplete (because there is more data to
127      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
128      * You can use this pagination token to retrieve the next set of models.</p>
129      */
WithNextToken(const Aws::String & value)130     inline ListModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
132     /**
133      * <p>If the previous response was incomplete (because there is more data to
134      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
135      * You can use this pagination token to retrieve the next set of models.</p>
136      */
WithNextToken(Aws::String && value)137     inline ListModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
138 
139     /**
140      * <p>If the previous response was incomplete (because there is more data to
141      * retrieve), Amazon Lookout for Vision returns a pagination token in the response.
142      * You can use this pagination token to retrieve the next set of models.</p>
143      */
WithNextToken(const char * value)144     inline ListModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
145 
146 
147     /**
148      * <p>The maximum number of results to return per paginated call. The largest value
149      * you can specify is 100. If you specify a value greater than 100, a
150      * ValidationException error occurs. The default value is 100.</p>
151      */
GetMaxResults()152     inline int GetMaxResults() const{ return m_maxResults; }
153 
154     /**
155      * <p>The maximum number of results to return per paginated call. The largest value
156      * you can specify is 100. If you specify a value greater than 100, a
157      * ValidationException error occurs. The default value is 100.</p>
158      */
MaxResultsHasBeenSet()159     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
160 
161     /**
162      * <p>The maximum number of results to return per paginated call. The largest value
163      * you can specify is 100. If you specify a value greater than 100, a
164      * ValidationException error occurs. The default value is 100.</p>
165      */
SetMaxResults(int value)166     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
167 
168     /**
169      * <p>The maximum number of results to return per paginated call. The largest value
170      * you can specify is 100. If you specify a value greater than 100, a
171      * ValidationException error occurs. The default value is 100.</p>
172      */
WithMaxResults(int value)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
190