AWS SDK for C++  0.14.3
AWS SDK for C++
AdminRespondToAuthChallengeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CognitoIdentityProvider
25 {
26 namespace Model
27 {
28 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
44  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
45 
49  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
50 
54  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
55 
59  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
60 
64  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
65 
69  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
70 
74  inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
75 
79  inline const Aws::String& GetClientId() const{ return m_clientId; }
80 
84  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
85 
89  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
90 
94  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
95 
99  inline AdminRespondToAuthChallengeRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
100 
104  inline AdminRespondToAuthChallengeRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
105 
109  inline AdminRespondToAuthChallengeRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
110 
114  inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
115 
119  inline void SetChallengeName(const ChallengeNameType& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
120 
124  inline void SetChallengeName(ChallengeNameType&& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
125 
129  inline AdminRespondToAuthChallengeRequest& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
130 
134  inline AdminRespondToAuthChallengeRequest& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(value); return *this;}
135 
139  inline const Aws::Map<Aws::String, Aws::String>& GetChallengeResponses() const{ return m_challengeResponses; }
140 
144  inline void SetChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
145 
149  inline void SetChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
150 
154  inline AdminRespondToAuthChallengeRequest& WithChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeResponses(value); return *this;}
155 
159  inline AdminRespondToAuthChallengeRequest& WithChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeResponses(value); return *this;}
160 
164  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
165 
169  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
170 
174  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
175 
179  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
180 
184  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
185 
189  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
190 
194  inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
195 
199  inline const Aws::String& GetSession() const{ return m_session; }
200 
204  inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
205 
209  inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = value; }
210 
214  inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
215 
219  inline AdminRespondToAuthChallengeRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
220 
224  inline AdminRespondToAuthChallengeRequest& WithSession(Aws::String&& value) { SetSession(value); return *this;}
225 
229  inline AdminRespondToAuthChallengeRequest& WithSession(const char* value) { SetSession(value); return *this;}
230 
231  private:
232  Aws::String m_userPoolId;
233  bool m_userPoolIdHasBeenSet;
234  Aws::String m_clientId;
235  bool m_clientIdHasBeenSet;
236  ChallengeNameType m_challengeName;
237  bool m_challengeNameHasBeenSet;
238  Aws::Map<Aws::String, Aws::String> m_challengeResponses;
239  bool m_challengeResponsesHasBeenSet;
240  Aws::String m_session;
241  bool m_sessionHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace CognitoIdentityProvider
246 } // namespace Aws
AdminRespondToAuthChallengeRequest & WithChallengeName(const ChallengeNameType &value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
AdminRespondToAuthChallengeRequest & WithChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
AdminRespondToAuthChallengeRequest & WithUserPoolId(Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const char *value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, const char *value)
AdminRespondToAuthChallengeRequest & WithSession(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminRespondToAuthChallengeRequest & WithChallengeName(ChallengeNameType &&value)
AdminRespondToAuthChallengeRequest & WithUserPoolId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & WithClientId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const Aws::String &value)
JSON (JavaScript Object Notation).