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/amplifybackend/AmplifyBackend_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace AmplifyBackend
25 {
26 namespace Model
27 {
28   class AWS_AMPLIFYBACKEND_API GetBackendResult
29   {
30   public:
31     GetBackendResult();
32     GetBackendResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     GetBackendResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>A stringified version of the cli.json file for your Amplify project.</p>
38      */
GetAmplifyFeatureFlags()39     inline const Aws::String& GetAmplifyFeatureFlags() const{ return m_amplifyFeatureFlags; }
40 
41     /**
42      * <p>A stringified version of the cli.json file for your Amplify project.</p>
43      */
SetAmplifyFeatureFlags(const Aws::String & value)44     inline void SetAmplifyFeatureFlags(const Aws::String& value) { m_amplifyFeatureFlags = value; }
45 
46     /**
47      * <p>A stringified version of the cli.json file for your Amplify project.</p>
48      */
SetAmplifyFeatureFlags(Aws::String && value)49     inline void SetAmplifyFeatureFlags(Aws::String&& value) { m_amplifyFeatureFlags = std::move(value); }
50 
51     /**
52      * <p>A stringified version of the cli.json file for your Amplify project.</p>
53      */
SetAmplifyFeatureFlags(const char * value)54     inline void SetAmplifyFeatureFlags(const char* value) { m_amplifyFeatureFlags.assign(value); }
55 
56     /**
57      * <p>A stringified version of the cli.json file for your Amplify project.</p>
58      */
WithAmplifyFeatureFlags(const Aws::String & value)59     inline GetBackendResult& WithAmplifyFeatureFlags(const Aws::String& value) { SetAmplifyFeatureFlags(value); return *this;}
60 
61     /**
62      * <p>A stringified version of the cli.json file for your Amplify project.</p>
63      */
WithAmplifyFeatureFlags(Aws::String && value)64     inline GetBackendResult& WithAmplifyFeatureFlags(Aws::String&& value) { SetAmplifyFeatureFlags(std::move(value)); return *this;}
65 
66     /**
67      * <p>A stringified version of the cli.json file for your Amplify project.</p>
68      */
WithAmplifyFeatureFlags(const char * value)69     inline GetBackendResult& WithAmplifyFeatureFlags(const char* value) { SetAmplifyFeatureFlags(value); return *this;}
70 
71 
72     /**
73      * <p>A stringified version of the current configs for your Amplify project.</p>
74      */
GetAmplifyMetaConfig()75     inline const Aws::String& GetAmplifyMetaConfig() const{ return m_amplifyMetaConfig; }
76 
77     /**
78      * <p>A stringified version of the current configs for your Amplify project.</p>
79      */
SetAmplifyMetaConfig(const Aws::String & value)80     inline void SetAmplifyMetaConfig(const Aws::String& value) { m_amplifyMetaConfig = value; }
81 
82     /**
83      * <p>A stringified version of the current configs for your Amplify project.</p>
84      */
SetAmplifyMetaConfig(Aws::String && value)85     inline void SetAmplifyMetaConfig(Aws::String&& value) { m_amplifyMetaConfig = std::move(value); }
86 
87     /**
88      * <p>A stringified version of the current configs for your Amplify project.</p>
89      */
SetAmplifyMetaConfig(const char * value)90     inline void SetAmplifyMetaConfig(const char* value) { m_amplifyMetaConfig.assign(value); }
91 
92     /**
93      * <p>A stringified version of the current configs for your Amplify project.</p>
94      */
WithAmplifyMetaConfig(const Aws::String & value)95     inline GetBackendResult& WithAmplifyMetaConfig(const Aws::String& value) { SetAmplifyMetaConfig(value); return *this;}
96 
97     /**
98      * <p>A stringified version of the current configs for your Amplify project.</p>
99      */
WithAmplifyMetaConfig(Aws::String && value)100     inline GetBackendResult& WithAmplifyMetaConfig(Aws::String&& value) { SetAmplifyMetaConfig(std::move(value)); return *this;}
101 
102     /**
103      * <p>A stringified version of the current configs for your Amplify project.</p>
104      */
WithAmplifyMetaConfig(const char * value)105     inline GetBackendResult& WithAmplifyMetaConfig(const char* value) { SetAmplifyMetaConfig(value); return *this;}
106 
107 
108     /**
109      * <p>The app ID.</p>
110      */
GetAppId()111     inline const Aws::String& GetAppId() const{ return m_appId; }
112 
113     /**
114      * <p>The app ID.</p>
115      */
SetAppId(const Aws::String & value)116     inline void SetAppId(const Aws::String& value) { m_appId = value; }
117 
118     /**
119      * <p>The app ID.</p>
120      */
SetAppId(Aws::String && value)121     inline void SetAppId(Aws::String&& value) { m_appId = std::move(value); }
122 
123     /**
124      * <p>The app ID.</p>
125      */
SetAppId(const char * value)126     inline void SetAppId(const char* value) { m_appId.assign(value); }
127 
128     /**
129      * <p>The app ID.</p>
130      */
WithAppId(const Aws::String & value)131     inline GetBackendResult& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
132 
133     /**
134      * <p>The app ID.</p>
135      */
WithAppId(Aws::String && value)136     inline GetBackendResult& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
137 
138     /**
139      * <p>The app ID.</p>
140      */
WithAppId(const char * value)141     inline GetBackendResult& WithAppId(const char* value) { SetAppId(value); return *this;}
142 
143 
144     /**
145      * <p>The name of the app.</p>
146      */
GetAppName()147     inline const Aws::String& GetAppName() const{ return m_appName; }
148 
149     /**
150      * <p>The name of the app.</p>
151      */
SetAppName(const Aws::String & value)152     inline void SetAppName(const Aws::String& value) { m_appName = value; }
153 
154     /**
155      * <p>The name of the app.</p>
156      */
SetAppName(Aws::String && value)157     inline void SetAppName(Aws::String&& value) { m_appName = std::move(value); }
158 
159     /**
160      * <p>The name of the app.</p>
161      */
SetAppName(const char * value)162     inline void SetAppName(const char* value) { m_appName.assign(value); }
163 
164     /**
165      * <p>The name of the app.</p>
166      */
WithAppName(const Aws::String & value)167     inline GetBackendResult& WithAppName(const Aws::String& value) { SetAppName(value); return *this;}
168 
169     /**
170      * <p>The name of the app.</p>
171      */
WithAppName(Aws::String && value)172     inline GetBackendResult& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;}
173 
174     /**
175      * <p>The name of the app.</p>
176      */
WithAppName(const char * value)177     inline GetBackendResult& WithAppName(const char* value) { SetAppName(value); return *this;}
178 
179 
180     /**
181      * <p>A list of backend environments in an array.</p>
182      */
GetBackendEnvironmentList()183     inline const Aws::Vector<Aws::String>& GetBackendEnvironmentList() const{ return m_backendEnvironmentList; }
184 
185     /**
186      * <p>A list of backend environments in an array.</p>
187      */
SetBackendEnvironmentList(const Aws::Vector<Aws::String> & value)188     inline void SetBackendEnvironmentList(const Aws::Vector<Aws::String>& value) { m_backendEnvironmentList = value; }
189 
190     /**
191      * <p>A list of backend environments in an array.</p>
192      */
SetBackendEnvironmentList(Aws::Vector<Aws::String> && value)193     inline void SetBackendEnvironmentList(Aws::Vector<Aws::String>&& value) { m_backendEnvironmentList = std::move(value); }
194 
195     /**
196      * <p>A list of backend environments in an array.</p>
197      */
WithBackendEnvironmentList(const Aws::Vector<Aws::String> & value)198     inline GetBackendResult& WithBackendEnvironmentList(const Aws::Vector<Aws::String>& value) { SetBackendEnvironmentList(value); return *this;}
199 
200     /**
201      * <p>A list of backend environments in an array.</p>
202      */
WithBackendEnvironmentList(Aws::Vector<Aws::String> && value)203     inline GetBackendResult& WithBackendEnvironmentList(Aws::Vector<Aws::String>&& value) { SetBackendEnvironmentList(std::move(value)); return *this;}
204 
205     /**
206      * <p>A list of backend environments in an array.</p>
207      */
AddBackendEnvironmentList(const Aws::String & value)208     inline GetBackendResult& AddBackendEnvironmentList(const Aws::String& value) { m_backendEnvironmentList.push_back(value); return *this; }
209 
210     /**
211      * <p>A list of backend environments in an array.</p>
212      */
AddBackendEnvironmentList(Aws::String && value)213     inline GetBackendResult& AddBackendEnvironmentList(Aws::String&& value) { m_backendEnvironmentList.push_back(std::move(value)); return *this; }
214 
215     /**
216      * <p>A list of backend environments in an array.</p>
217      */
AddBackendEnvironmentList(const char * value)218     inline GetBackendResult& AddBackendEnvironmentList(const char* value) { m_backendEnvironmentList.push_back(value); return *this; }
219 
220 
221     /**
222      * <p>The name of the backend environment.</p>
223      */
GetBackendEnvironmentName()224     inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; }
225 
226     /**
227      * <p>The name of the backend environment.</p>
228      */
SetBackendEnvironmentName(const Aws::String & value)229     inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentName = value; }
230 
231     /**
232      * <p>The name of the backend environment.</p>
233      */
SetBackendEnvironmentName(Aws::String && value)234     inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentName = std::move(value); }
235 
236     /**
237      * <p>The name of the backend environment.</p>
238      */
SetBackendEnvironmentName(const char * value)239     inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentName.assign(value); }
240 
241     /**
242      * <p>The name of the backend environment.</p>
243      */
WithBackendEnvironmentName(const Aws::String & value)244     inline GetBackendResult& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;}
245 
246     /**
247      * <p>The name of the backend environment.</p>
248      */
WithBackendEnvironmentName(Aws::String && value)249     inline GetBackendResult& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;}
250 
251     /**
252      * <p>The name of the backend environment.</p>
253      */
WithBackendEnvironmentName(const char * value)254     inline GetBackendResult& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;}
255 
256 
257     /**
258      * <p>If the request failed, this is the returned error.</p>
259      */
GetError()260     inline const Aws::String& GetError() const{ return m_error; }
261 
262     /**
263      * <p>If the request failed, this is the returned error.</p>
264      */
SetError(const Aws::String & value)265     inline void SetError(const Aws::String& value) { m_error = value; }
266 
267     /**
268      * <p>If the request failed, this is the returned error.</p>
269      */
SetError(Aws::String && value)270     inline void SetError(Aws::String&& value) { m_error = std::move(value); }
271 
272     /**
273      * <p>If the request failed, this is the returned error.</p>
274      */
SetError(const char * value)275     inline void SetError(const char* value) { m_error.assign(value); }
276 
277     /**
278      * <p>If the request failed, this is the returned error.</p>
279      */
WithError(const Aws::String & value)280     inline GetBackendResult& WithError(const Aws::String& value) { SetError(value); return *this;}
281 
282     /**
283      * <p>If the request failed, this is the returned error.</p>
284      */
WithError(Aws::String && value)285     inline GetBackendResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
286 
287     /**
288      * <p>If the request failed, this is the returned error.</p>
289      */
WithError(const char * value)290     inline GetBackendResult& WithError(const char* value) { SetError(value); return *this;}
291 
292   private:
293 
294     Aws::String m_amplifyFeatureFlags;
295 
296     Aws::String m_amplifyMetaConfig;
297 
298     Aws::String m_appId;
299 
300     Aws::String m_appName;
301 
302     Aws::Vector<Aws::String> m_backendEnvironmentList;
303 
304     Aws::String m_backendEnvironmentName;
305 
306     Aws::String m_error;
307   };
308 
309 } // namespace Model
310 } // namespace AmplifyBackend
311 } // namespace Aws
312