AWS SDK for C++  0.14.3
AWS SDK for C++
GetUserResult.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 {
43  {
44  public:
45  GetUserResult();
48 
52  inline const Aws::String& GetUsername() const{ return m_username; }
53 
57  inline void SetUsername(const Aws::String& value) { m_username = value; }
58 
62  inline void SetUsername(Aws::String&& value) { m_username = value; }
63 
67  inline void SetUsername(const char* value) { m_username.assign(value); }
68 
72  inline GetUserResult& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
73 
77  inline GetUserResult& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
78 
82  inline GetUserResult& WithUsername(const char* value) { SetUsername(value); return *this;}
83 
87  inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
88 
92  inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributes = value; }
93 
97  inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributes = value; }
98 
102  inline GetUserResult& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
103 
107  inline GetUserResult& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(value); return *this;}
108 
112  inline GetUserResult& AddUserAttributes(const AttributeType& value) { m_userAttributes.push_back(value); return *this; }
113 
117  inline GetUserResult& AddUserAttributes(AttributeType&& value) { m_userAttributes.push_back(value); return *this; }
118 
122  inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
123 
127  inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptions = value; }
128 
132  inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptions = value; }
133 
137  inline GetUserResult& WithMFAOptions(const Aws::Vector<MFAOptionType>& value) { SetMFAOptions(value); return *this;}
138 
142  inline GetUserResult& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(value); return *this;}
143 
147  inline GetUserResult& AddMFAOptions(const MFAOptionType& value) { m_mFAOptions.push_back(value); return *this; }
148 
152  inline GetUserResult& AddMFAOptions(MFAOptionType&& value) { m_mFAOptions.push_back(value); return *this; }
153 
154  private:
155  Aws::String m_username;
156  Aws::Vector<AttributeType> m_userAttributes;
157  Aws::Vector<MFAOptionType> m_mFAOptions;
158  };
159 
160 } // namespace Model
161 } // namespace CognitoIdentityProvider
162 } // namespace Aws
void SetUserAttributes(Aws::Vector< AttributeType > &&value)
Definition: GetUserResult.h:97
GetUserResult & AddUserAttributes(AttributeType &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetUserResult & WithUsername(const Aws::String &value)
Definition: GetUserResult.h:72
GetUserResult & WithUserAttributes(const Aws::Vector< AttributeType > &value)
void SetUsername(const Aws::String &value)
Definition: GetUserResult.h:57
void SetMFAOptions(Aws::Vector< MFAOptionType > &&value)
void SetMFAOptions(const Aws::Vector< MFAOptionType > &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
const Aws::Vector< AttributeType > & GetUserAttributes() const
Definition: GetUserResult.h:87
GetUserResult & AddUserAttributes(const AttributeType &value)
const Aws::Vector< MFAOptionType > & GetMFAOptions() const
GetUserResult & WithMFAOptions(const Aws::Vector< MFAOptionType > &value)
GetUserResult & WithUsername(Aws::String &&value)
Definition: GetUserResult.h:77
GetUserResult & AddMFAOptions(const MFAOptionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetUserResult & WithMFAOptions(Aws::Vector< MFAOptionType > &&value)
GetUserResult & WithUsername(const char *value)
Definition: GetUserResult.h:82
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
Definition: GetUserResult.h:92
GetUserResult & AddMFAOptions(MFAOptionType &&value)
JSON (JavaScript Object Notation).
GetUserResult & WithUserAttributes(Aws::Vector< AttributeType > &&value)