AWS SDK for C++  1.8.71
AWS SDK for C++
ListBackendEnvironmentsRequest.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 Amplify
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListBackendEnvironments"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetAppId() const{ return m_appId; }
49 
53  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
54 
58  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
59 
63  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
64 
68  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
69 
73  inline ListBackendEnvironmentsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
74 
78  inline ListBackendEnvironmentsRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
79 
83  inline ListBackendEnvironmentsRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
84 
85 
89  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
90 
94  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
95 
99  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
100 
104  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
105 
109  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
110 
114  inline ListBackendEnvironmentsRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
115 
119  inline ListBackendEnvironmentsRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
120 
124  inline ListBackendEnvironmentsRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
125 
126 
132  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
133 
139  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 
146  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
147 
153  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
154 
160  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
161 
167  inline ListBackendEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
168 
174  inline ListBackendEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
175 
181  inline ListBackendEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
182 
183 
187  inline int GetMaxResults() const{ return m_maxResults; }
188 
192  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
193 
197  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
198 
202  inline ListBackendEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
203 
204  private:
205 
206  Aws::String m_appId;
207  bool m_appIdHasBeenSet;
208 
209  Aws::String m_environmentName;
210  bool m_environmentNameHasBeenSet;
211 
212  Aws::String m_nextToken;
213  bool m_nextTokenHasBeenSet;
214 
215  int m_maxResults;
216  bool m_maxResultsHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Amplify
221 } // namespace Aws
ListBackendEnvironmentsRequest & WithAppId(const Aws::String &value)
#define AWS_AMPLIFY_API
ListBackendEnvironmentsRequest & WithNextToken(const Aws::String &value)
ListBackendEnvironmentsRequest & WithEnvironmentName(Aws::String &&value)
ListBackendEnvironmentsRequest & WithAppId(Aws::String &&value)
ListBackendEnvironmentsRequest & WithEnvironmentName(const char *value)
ListBackendEnvironmentsRequest & WithNextToken(const char *value)
ListBackendEnvironmentsRequest & WithEnvironmentName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListBackendEnvironmentsRequest & WithNextToken(Aws::String &&value)
ListBackendEnvironmentsRequest & WithMaxResults(int value)
ListBackendEnvironmentsRequest & WithAppId(const char *value)