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/amplifybackend/AmplifyBackendRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AmplifyBackend
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>The request body for ImportBackendAuth.</p><p><h3>See Also:</h3>   <a
21    * href="http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendAuthRequest">AWS
22    * API Reference</a></p>
23    */
24   class AWS_AMPLIFYBACKEND_API ImportBackendAuthRequest : public AmplifyBackendRequest
25   {
26   public:
27     ImportBackendAuthRequest();
28 
29     // Service request name is the Operation name which will send this request out,
30     // each operation should has unique request name, so that we can get operation's name from this request.
31     // Note: this is not true for response, multiple operations may have the same response name,
32     // so we can not get operation's name from response.
GetServiceRequestName()33     inline virtual const char* GetServiceRequestName() const override { return "ImportBackendAuth"; }
34 
35     Aws::String SerializePayload() const override;
36 
37 
38     /**
39      * <p>The app ID.</p>
40      */
GetAppId()41     inline const Aws::String& GetAppId() const{ return m_appId; }
42 
43     /**
44      * <p>The app ID.</p>
45      */
AppIdHasBeenSet()46     inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 
48     /**
49      * <p>The app ID.</p>
50      */
SetAppId(const Aws::String & value)51     inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
52 
53     /**
54      * <p>The app ID.</p>
55      */
SetAppId(Aws::String && value)56     inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
57 
58     /**
59      * <p>The app ID.</p>
60      */
SetAppId(const char * value)61     inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
62 
63     /**
64      * <p>The app ID.</p>
65      */
WithAppId(const Aws::String & value)66     inline ImportBackendAuthRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
67 
68     /**
69      * <p>The app ID.</p>
70      */
WithAppId(Aws::String && value)71     inline ImportBackendAuthRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
72 
73     /**
74      * <p>The app ID.</p>
75      */
WithAppId(const char * value)76     inline ImportBackendAuthRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
77 
78 
79     /**
80      * <p>The name of the backend environment.</p>
81      */
GetBackendEnvironmentName()82     inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; }
83 
84     /**
85      * <p>The name of the backend environment.</p>
86      */
BackendEnvironmentNameHasBeenSet()87     inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; }
88 
89     /**
90      * <p>The name of the backend environment.</p>
91      */
SetBackendEnvironmentName(const Aws::String & value)92     inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = value; }
93 
94     /**
95      * <p>The name of the backend environment.</p>
96      */
SetBackendEnvironmentName(Aws::String && value)97     inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = std::move(value); }
98 
99     /**
100      * <p>The name of the backend environment.</p>
101      */
SetBackendEnvironmentName(const char * value)102     inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName.assign(value); }
103 
104     /**
105      * <p>The name of the backend environment.</p>
106      */
WithBackendEnvironmentName(const Aws::String & value)107     inline ImportBackendAuthRequest& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;}
108 
109     /**
110      * <p>The name of the backend environment.</p>
111      */
WithBackendEnvironmentName(Aws::String && value)112     inline ImportBackendAuthRequest& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;}
113 
114     /**
115      * <p>The name of the backend environment.</p>
116      */
WithBackendEnvironmentName(const char * value)117     inline ImportBackendAuthRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;}
118 
119 
120     /**
121      * <p>The ID of the Amazon Cognito identity pool.</p>
122      */
GetIdentityPoolId()123     inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
124 
125     /**
126      * <p>The ID of the Amazon Cognito identity pool.</p>
127      */
IdentityPoolIdHasBeenSet()128     inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
129 
130     /**
131      * <p>The ID of the Amazon Cognito identity pool.</p>
132      */
SetIdentityPoolId(const Aws::String & value)133     inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
134 
135     /**
136      * <p>The ID of the Amazon Cognito identity pool.</p>
137      */
SetIdentityPoolId(Aws::String && value)138     inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
139 
140     /**
141      * <p>The ID of the Amazon Cognito identity pool.</p>
142      */
SetIdentityPoolId(const char * value)143     inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
144 
145     /**
146      * <p>The ID of the Amazon Cognito identity pool.</p>
147      */
WithIdentityPoolId(const Aws::String & value)148     inline ImportBackendAuthRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
149 
150     /**
151      * <p>The ID of the Amazon Cognito identity pool.</p>
152      */
WithIdentityPoolId(Aws::String && value)153     inline ImportBackendAuthRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
154 
155     /**
156      * <p>The ID of the Amazon Cognito identity pool.</p>
157      */
WithIdentityPoolId(const char * value)158     inline ImportBackendAuthRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
159 
160 
161     /**
162      * <p>The ID of the Amazon Cognito native client.</p>
163      */
GetNativeClientId()164     inline const Aws::String& GetNativeClientId() const{ return m_nativeClientId; }
165 
166     /**
167      * <p>The ID of the Amazon Cognito native client.</p>
168      */
NativeClientIdHasBeenSet()169     inline bool NativeClientIdHasBeenSet() const { return m_nativeClientIdHasBeenSet; }
170 
171     /**
172      * <p>The ID of the Amazon Cognito native client.</p>
173      */
SetNativeClientId(const Aws::String & value)174     inline void SetNativeClientId(const Aws::String& value) { m_nativeClientIdHasBeenSet = true; m_nativeClientId = value; }
175 
176     /**
177      * <p>The ID of the Amazon Cognito native client.</p>
178      */
SetNativeClientId(Aws::String && value)179     inline void SetNativeClientId(Aws::String&& value) { m_nativeClientIdHasBeenSet = true; m_nativeClientId = std::move(value); }
180 
181     /**
182      * <p>The ID of the Amazon Cognito native client.</p>
183      */
SetNativeClientId(const char * value)184     inline void SetNativeClientId(const char* value) { m_nativeClientIdHasBeenSet = true; m_nativeClientId.assign(value); }
185 
186     /**
187      * <p>The ID of the Amazon Cognito native client.</p>
188      */
WithNativeClientId(const Aws::String & value)189     inline ImportBackendAuthRequest& WithNativeClientId(const Aws::String& value) { SetNativeClientId(value); return *this;}
190 
191     /**
192      * <p>The ID of the Amazon Cognito native client.</p>
193      */
WithNativeClientId(Aws::String && value)194     inline ImportBackendAuthRequest& WithNativeClientId(Aws::String&& value) { SetNativeClientId(std::move(value)); return *this;}
195 
196     /**
197      * <p>The ID of the Amazon Cognito native client.</p>
198      */
WithNativeClientId(const char * value)199     inline ImportBackendAuthRequest& WithNativeClientId(const char* value) { SetNativeClientId(value); return *this;}
200 
201 
202     /**
203      * <p>The ID of the Amazon Cognito user pool.</p>
204      */
GetUserPoolId()205     inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
206 
207     /**
208      * <p>The ID of the Amazon Cognito user pool.</p>
209      */
UserPoolIdHasBeenSet()210     inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
211 
212     /**
213      * <p>The ID of the Amazon Cognito user pool.</p>
214      */
SetUserPoolId(const Aws::String & value)215     inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
216 
217     /**
218      * <p>The ID of the Amazon Cognito user pool.</p>
219      */
SetUserPoolId(Aws::String && value)220     inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
221 
222     /**
223      * <p>The ID of the Amazon Cognito user pool.</p>
224      */
SetUserPoolId(const char * value)225     inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
226 
227     /**
228      * <p>The ID of the Amazon Cognito user pool.</p>
229      */
WithUserPoolId(const Aws::String & value)230     inline ImportBackendAuthRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
231 
232     /**
233      * <p>The ID of the Amazon Cognito user pool.</p>
234      */
WithUserPoolId(Aws::String && value)235     inline ImportBackendAuthRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
236 
237     /**
238      * <p>The ID of the Amazon Cognito user pool.</p>
239      */
WithUserPoolId(const char * value)240     inline ImportBackendAuthRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
241 
242 
243     /**
244      * <p>The ID of the Amazon Cognito web client.</p>
245      */
GetWebClientId()246     inline const Aws::String& GetWebClientId() const{ return m_webClientId; }
247 
248     /**
249      * <p>The ID of the Amazon Cognito web client.</p>
250      */
WebClientIdHasBeenSet()251     inline bool WebClientIdHasBeenSet() const { return m_webClientIdHasBeenSet; }
252 
253     /**
254      * <p>The ID of the Amazon Cognito web client.</p>
255      */
SetWebClientId(const Aws::String & value)256     inline void SetWebClientId(const Aws::String& value) { m_webClientIdHasBeenSet = true; m_webClientId = value; }
257 
258     /**
259      * <p>The ID of the Amazon Cognito web client.</p>
260      */
SetWebClientId(Aws::String && value)261     inline void SetWebClientId(Aws::String&& value) { m_webClientIdHasBeenSet = true; m_webClientId = std::move(value); }
262 
263     /**
264      * <p>The ID of the Amazon Cognito web client.</p>
265      */
SetWebClientId(const char * value)266     inline void SetWebClientId(const char* value) { m_webClientIdHasBeenSet = true; m_webClientId.assign(value); }
267 
268     /**
269      * <p>The ID of the Amazon Cognito web client.</p>
270      */
WithWebClientId(const Aws::String & value)271     inline ImportBackendAuthRequest& WithWebClientId(const Aws::String& value) { SetWebClientId(value); return *this;}
272 
273     /**
274      * <p>The ID of the Amazon Cognito web client.</p>
275      */
WithWebClientId(Aws::String && value)276     inline ImportBackendAuthRequest& WithWebClientId(Aws::String&& value) { SetWebClientId(std::move(value)); return *this;}
277 
278     /**
279      * <p>The ID of the Amazon Cognito web client.</p>
280      */
WithWebClientId(const char * value)281     inline ImportBackendAuthRequest& WithWebClientId(const char* value) { SetWebClientId(value); return *this;}
282 
283   private:
284 
285     Aws::String m_appId;
286     bool m_appIdHasBeenSet;
287 
288     Aws::String m_backendEnvironmentName;
289     bool m_backendEnvironmentNameHasBeenSet;
290 
291     Aws::String m_identityPoolId;
292     bool m_identityPoolIdHasBeenSet;
293 
294     Aws::String m_nativeClientId;
295     bool m_nativeClientIdHasBeenSet;
296 
297     Aws::String m_userPoolId;
298     bool m_userPoolIdHasBeenSet;
299 
300     Aws::String m_webClientId;
301     bool m_webClientIdHasBeenSet;
302   };
303 
304 } // namespace Model
305 } // namespace AmplifyBackend
306 } // namespace Aws
307