AWS SDK for C++  0.12.9
AWS SDK for C++
AdminGetUserResult.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
23 
24 namespace Aws
25 {
26 template<typename RESULT_TYPE>
27 class AmazonWebServiceResult;
28 
29 namespace Utils
30 {
31 namespace Json
32 {
33  class JsonValue;
34 } // namespace Json
35 } // namespace Utils
36 namespace CognitoIdentityProvider
37 {
38 namespace Model
39 {
45  {
46  public:
50 
54  inline const Aws::String& GetUsername() const{ return m_username; }
55 
59  inline void SetUsername(const Aws::String& value) { m_username = value; }
60 
64  inline void SetUsername(Aws::String&& value) { m_username = value; }
65 
69  inline void SetUsername(const char* value) { m_username.assign(value); }
70 
74  inline AdminGetUserResult& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
75 
79  inline AdminGetUserResult& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
80 
84  inline AdminGetUserResult& WithUsername(const char* value) { SetUsername(value); return *this;}
85 
89  inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
90 
94  inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributes = value; }
95 
99  inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributes = value; }
100 
104  inline AdminGetUserResult& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
105 
109  inline AdminGetUserResult& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(value); return *this;}
110 
114  inline AdminGetUserResult& AddUserAttributes(const AttributeType& value) { m_userAttributes.push_back(value); return *this; }
115 
119  inline AdminGetUserResult& AddUserAttributes(AttributeType&& value) { m_userAttributes.push_back(value); return *this; }
120 
124  inline const Aws::Utils::DateTime& GetUserCreateDate() const{ return m_userCreateDate; }
125 
129  inline void SetUserCreateDate(const Aws::Utils::DateTime& value) { m_userCreateDate = value; }
130 
134  inline void SetUserCreateDate(Aws::Utils::DateTime&& value) { m_userCreateDate = value; }
135 
139  inline AdminGetUserResult& WithUserCreateDate(const Aws::Utils::DateTime& value) { SetUserCreateDate(value); return *this;}
140 
144  inline AdminGetUserResult& WithUserCreateDate(Aws::Utils::DateTime&& value) { SetUserCreateDate(value); return *this;}
145 
149  inline const Aws::Utils::DateTime& GetUserLastModifiedDate() const{ return m_userLastModifiedDate; }
150 
154  inline void SetUserLastModifiedDate(const Aws::Utils::DateTime& value) { m_userLastModifiedDate = value; }
155 
159  inline void SetUserLastModifiedDate(Aws::Utils::DateTime&& value) { m_userLastModifiedDate = value; }
160 
164  inline AdminGetUserResult& WithUserLastModifiedDate(const Aws::Utils::DateTime& value) { SetUserLastModifiedDate(value); return *this;}
165 
169  inline AdminGetUserResult& WithUserLastModifiedDate(Aws::Utils::DateTime&& value) { SetUserLastModifiedDate(value); return *this;}
170 
174  inline bool GetEnabled() const{ return m_enabled; }
175 
179  inline void SetEnabled(bool value) { m_enabled = value; }
180 
184  inline AdminGetUserResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
185 
193  inline const UserStatusType& GetUserStatus() const{ return m_userStatus; }
194 
202  inline void SetUserStatus(const UserStatusType& value) { m_userStatus = value; }
203 
211  inline void SetUserStatus(UserStatusType&& value) { m_userStatus = value; }
212 
220  inline AdminGetUserResult& WithUserStatus(const UserStatusType& value) { SetUserStatus(value); return *this;}
221 
229  inline AdminGetUserResult& WithUserStatus(UserStatusType&& value) { SetUserStatus(value); return *this;}
230 
234  inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
235 
239  inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptions = value; }
240 
244  inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptions = value; }
245 
249  inline AdminGetUserResult& WithMFAOptions(const Aws::Vector<MFAOptionType>& value) { SetMFAOptions(value); return *this;}
250 
254  inline AdminGetUserResult& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(value); return *this;}
255 
259  inline AdminGetUserResult& AddMFAOptions(const MFAOptionType& value) { m_mFAOptions.push_back(value); return *this; }
260 
264  inline AdminGetUserResult& AddMFAOptions(MFAOptionType&& value) { m_mFAOptions.push_back(value); return *this; }
265 
266  private:
267  Aws::String m_username;
268  Aws::Vector<AttributeType> m_userAttributes;
269  Aws::Utils::DateTime m_userCreateDate;
270  Aws::Utils::DateTime m_userLastModifiedDate;
271  bool m_enabled;
272  UserStatusType m_userStatus;
273  Aws::Vector<MFAOptionType> m_mFAOptions;
274  };
275 
276 } // namespace Model
277 } // namespace CognitoIdentityProvider
278 } // namespace Aws
AdminGetUserResult & WithUserCreateDate(Aws::Utils::DateTime &&value)
void SetUserLastModifiedDate(const Aws::Utils::DateTime &value)
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
AdminGetUserResult & WithUserLastModifiedDate(Aws::Utils::DateTime &&value)
AdminGetUserResult & WithMFAOptions(Aws::Vector< MFAOptionType > &&value)
AdminGetUserResult & WithUserLastModifiedDate(const Aws::Utils::DateTime &value)
AdminGetUserResult & WithUsername(const char *value)
void SetUserLastModifiedDate(Aws::Utils::DateTime &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AdminGetUserResult & WithUsername(const Aws::String &value)
AdminGetUserResult & AddMFAOptions(MFAOptionType &&value)
void SetMFAOptions(const Aws::Vector< MFAOptionType > &value)
void SetUserAttributes(Aws::Vector< AttributeType > &&value)
const Aws::Vector< AttributeType > & GetUserAttributes() const
const Aws::Utils::DateTime & GetUserLastModifiedDate() const
AdminGetUserResult & WithUserAttributes(Aws::Vector< AttributeType > &&value)
AdminGetUserResult & WithUserStatus(UserStatusType &&value)
AdminGetUserResult & WithUserAttributes(const Aws::Vector< AttributeType > &value)
void SetUserCreateDate(const Aws::Utils::DateTime &value)
AdminGetUserResult & WithMFAOptions(const Aws::Vector< MFAOptionType > &value)
const Aws::Vector< MFAOptionType > & GetMFAOptions() const
AdminGetUserResult & AddUserAttributes(const AttributeType &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminGetUserResult & WithUsername(Aws::String &&value)
AdminGetUserResult & AddMFAOptions(const MFAOptionType &value)
AdminGetUserResult & WithUserStatus(const UserStatusType &value)
AdminGetUserResult & AddUserAttributes(AttributeType &&value)
const Aws::Utils::DateTime & GetUserCreateDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminGetUserResult & WithUserCreateDate(const Aws::Utils::DateTime &value)
void SetMFAOptions(Aws::Vector< MFAOptionType > &&value)
JSON (JavaScript Object Notation).