AWS SDK for C++  0.14.3
AWS SDK for C++
InitiateAuthResult.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 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace CognitoIdentityProvider
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
52 
56  inline void SetChallengeName(const ChallengeNameType& value) { m_challengeName = value; }
57 
61  inline void SetChallengeName(ChallengeNameType&& value) { m_challengeName = value; }
62 
66  inline InitiateAuthResult& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
67 
71  inline InitiateAuthResult& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(value); return *this;}
72 
76  inline const Aws::String& GetSession() const{ return m_session; }
77 
81  inline void SetSession(const Aws::String& value) { m_session = value; }
82 
86  inline void SetSession(Aws::String&& value) { m_session = value; }
87 
91  inline void SetSession(const char* value) { m_session.assign(value); }
92 
96  inline InitiateAuthResult& WithSession(const Aws::String& value) { SetSession(value); return *this;}
97 
101  inline InitiateAuthResult& WithSession(Aws::String&& value) { SetSession(value); return *this;}
102 
106  inline InitiateAuthResult& WithSession(const char* value) { SetSession(value); return *this;}
107 
111  inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const{ return m_challengeParameters; }
112 
116  inline void SetChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeParameters = value; }
117 
121  inline void SetChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeParameters = value; }
122 
126  inline InitiateAuthResult& WithChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeParameters(value); return *this;}
127 
131  inline InitiateAuthResult& WithChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeParameters(value); return *this;}
132 
136  inline InitiateAuthResult& AddChallengeParameters(const Aws::String& key, const Aws::String& value) { m_challengeParameters[key] = value; return *this; }
137 
141  inline InitiateAuthResult& AddChallengeParameters(Aws::String&& key, const Aws::String& value) { m_challengeParameters[key] = value; return *this; }
142 
146  inline InitiateAuthResult& AddChallengeParameters(const Aws::String& key, Aws::String&& value) { m_challengeParameters[key] = value; return *this; }
147 
151  inline InitiateAuthResult& AddChallengeParameters(Aws::String&& key, Aws::String&& value) { m_challengeParameters[key] = value; return *this; }
152 
156  inline InitiateAuthResult& AddChallengeParameters(const char* key, Aws::String&& value) { m_challengeParameters[key] = value; return *this; }
157 
161  inline InitiateAuthResult& AddChallengeParameters(Aws::String&& key, const char* value) { m_challengeParameters[key] = value; return *this; }
162 
166  inline InitiateAuthResult& AddChallengeParameters(const char* key, const char* value) { m_challengeParameters[key] = value; return *this; }
167 
168 
169  inline const AuthenticationResultType& GetAuthenticationResult() const{ return m_authenticationResult; }
170 
171 
172  inline void SetAuthenticationResult(const AuthenticationResultType& value) { m_authenticationResult = value; }
173 
174 
175  inline void SetAuthenticationResult(AuthenticationResultType&& value) { m_authenticationResult = value; }
176 
177 
178  inline InitiateAuthResult& WithAuthenticationResult(const AuthenticationResultType& value) { SetAuthenticationResult(value); return *this;}
179 
180 
181  inline InitiateAuthResult& WithAuthenticationResult(AuthenticationResultType&& value) { SetAuthenticationResult(value); return *this;}
182 
183  private:
184  ChallengeNameType m_challengeName;
185  Aws::String m_session;
186  Aws::Map<Aws::String, Aws::String> m_challengeParameters;
187  AuthenticationResultType m_authenticationResult;
188  };
189 
190 } // namespace Model
191 } // namespace CognitoIdentityProvider
192 } // namespace Aws
void SetChallengeName(const ChallengeNameType &value)
InitiateAuthResult & AddChallengeParameters(Aws::String &&key, const char *value)
InitiateAuthResult & WithChallengeParameters(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthResult & AddChallengeParameters(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
InitiateAuthResult & WithChallengeName(const ChallengeNameType &value)
const Aws::Map< Aws::String, Aws::String > & GetChallengeParameters() const
InitiateAuthResult & WithSession(Aws::String &&value)
void SetAuthenticationResult(const AuthenticationResultType &value)
InitiateAuthResult & AddChallengeParameters(Aws::String &&key, const Aws::String &value)
InitiateAuthResult & AddChallengeParameters(const Aws::String &key, const Aws::String &value)
InitiateAuthResult & WithSession(const Aws::String &value)
InitiateAuthResult & AddChallengeParameters(const Aws::String &key, Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
InitiateAuthResult & AddChallengeParameters(const char *key, const char *value)
InitiateAuthResult & WithChallengeName(ChallengeNameType &&value)
InitiateAuthResult & WithAuthenticationResult(const AuthenticationResultType &value)
void SetChallengeParameters(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthResult & AddChallengeParameters(const char *key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InitiateAuthResult & WithChallengeParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetAuthenticationResult(AuthenticationResultType &&value)
const AuthenticationResultType & GetAuthenticationResult() const
InitiateAuthResult & WithAuthenticationResult(AuthenticationResultType &&value)
void SetChallengeParameters(const Aws::Map< Aws::String, Aws::String > &value)
JSON (JavaScript Object Notation).
InitiateAuthResult & WithSession(const char *value)