AWS SDK for C++  0.14.3
AWS SDK for C++
RespondToAuthChallengeRequest.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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetClientId() const{ return m_clientId; }
44 
48  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
49 
53  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
54 
58  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
59 
63  inline RespondToAuthChallengeRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
64 
68  inline RespondToAuthChallengeRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
69 
73  inline RespondToAuthChallengeRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
74 
78  inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
79 
83  inline void SetChallengeName(const ChallengeNameType& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
84 
88  inline void SetChallengeName(ChallengeNameType&& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
89 
93  inline RespondToAuthChallengeRequest& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
94 
98  inline RespondToAuthChallengeRequest& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(value); return *this;}
99 
103  inline const Aws::String& GetSession() const{ return m_session; }
104 
108  inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
109 
113  inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = value; }
114 
118  inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
119 
123  inline RespondToAuthChallengeRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
124 
128  inline RespondToAuthChallengeRequest& WithSession(Aws::String&& value) { SetSession(value); return *this;}
129 
133  inline RespondToAuthChallengeRequest& WithSession(const char* value) { SetSession(value); return *this;}
134 
138  inline const Aws::Map<Aws::String, Aws::String>& GetChallengeResponses() const{ return m_challengeResponses; }
139 
143  inline void SetChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
144 
148  inline void SetChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
149 
153  inline RespondToAuthChallengeRequest& WithChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeResponses(value); return *this;}
154 
158  inline RespondToAuthChallengeRequest& WithChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeResponses(value); return *this;}
159 
163  inline RespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
164 
168  inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
169 
173  inline RespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
174 
178  inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
179 
183  inline RespondToAuthChallengeRequest& AddChallengeResponses(const char* key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
184 
188  inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
189 
193  inline RespondToAuthChallengeRequest& AddChallengeResponses(const char* key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses[key] = value; return *this; }
194 
195  private:
196  Aws::String m_clientId;
197  bool m_clientIdHasBeenSet;
198  ChallengeNameType m_challengeName;
199  bool m_challengeNameHasBeenSet;
200  Aws::String m_session;
201  bool m_sessionHasBeenSet;
202  Aws::Map<Aws::String, Aws::String> m_challengeResponses;
203  bool m_challengeResponsesHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace CognitoIdentityProvider
208 } // namespace Aws
RespondToAuthChallengeRequest & WithSession(const Aws::String &value)
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const Aws::String &value)
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, Aws::String &&value)
void SetChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
RespondToAuthChallengeRequest & WithChallengeName(ChallengeNameType &&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
RespondToAuthChallengeRequest & WithSession(Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
RespondToAuthChallengeRequest & WithChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
RespondToAuthChallengeRequest & WithChallengeName(const ChallengeNameType &value)
RespondToAuthChallengeRequest & WithChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
RespondToAuthChallengeRequest & WithClientId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetChallengeResponses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, Aws::String &&value)
void SetChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const char *value)
RespondToAuthChallengeRequest & AddChallengeResponses(const char *key, const char *value)
RespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, const Aws::String &value)
RespondToAuthChallengeRequest & WithClientId(Aws::String &&value)
RespondToAuthChallengeRequest & AddChallengeResponses(const char *key, Aws::String &&value)
JSON (JavaScript Object Notation).