AWS SDK for C++  0.14.3
AWS SDK for C++
UserType.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CognitoIdentityProvider
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  UserType();
44  UserType(const Aws::Utils::Json::JsonValue& jsonValue);
45  UserType& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetUsername() const{ return m_username; }
52 
56  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
57 
61  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
62 
66  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
67 
71  inline UserType& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
72 
76  inline UserType& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
77 
81  inline UserType& WithUsername(const char* value) { SetUsername(value); return *this;}
82 
86  inline const Aws::Vector<AttributeType>& GetAttributes() const{ return m_attributes; }
87 
91  inline void SetAttributes(const Aws::Vector<AttributeType>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
92 
96  inline void SetAttributes(Aws::Vector<AttributeType>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
97 
101  inline UserType& WithAttributes(const Aws::Vector<AttributeType>& value) { SetAttributes(value); return *this;}
102 
106  inline UserType& WithAttributes(Aws::Vector<AttributeType>&& value) { SetAttributes(value); return *this;}
107 
111  inline UserType& AddAttributes(const AttributeType& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
112 
116  inline UserType& AddAttributes(AttributeType&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
117 
121  inline const Aws::Utils::DateTime& GetUserCreateDate() const{ return m_userCreateDate; }
122 
126  inline void SetUserCreateDate(const Aws::Utils::DateTime& value) { m_userCreateDateHasBeenSet = true; m_userCreateDate = value; }
127 
131  inline void SetUserCreateDate(Aws::Utils::DateTime&& value) { m_userCreateDateHasBeenSet = true; m_userCreateDate = value; }
132 
136  inline UserType& WithUserCreateDate(const Aws::Utils::DateTime& value) { SetUserCreateDate(value); return *this;}
137 
141  inline UserType& WithUserCreateDate(Aws::Utils::DateTime&& value) { SetUserCreateDate(value); return *this;}
142 
146  inline const Aws::Utils::DateTime& GetUserLastModifiedDate() const{ return m_userLastModifiedDate; }
147 
151  inline void SetUserLastModifiedDate(const Aws::Utils::DateTime& value) { m_userLastModifiedDateHasBeenSet = true; m_userLastModifiedDate = value; }
152 
156  inline void SetUserLastModifiedDate(Aws::Utils::DateTime&& value) { m_userLastModifiedDateHasBeenSet = true; m_userLastModifiedDate = value; }
157 
161  inline UserType& WithUserLastModifiedDate(const Aws::Utils::DateTime& value) { SetUserLastModifiedDate(value); return *this;}
162 
166  inline UserType& WithUserLastModifiedDate(Aws::Utils::DateTime&& value) { SetUserLastModifiedDate(value); return *this;}
167 
171  inline bool GetEnabled() const{ return m_enabled; }
172 
176  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
177 
181  inline UserType& WithEnabled(bool value) { SetEnabled(value); return *this;}
182 
190  inline const UserStatusType& GetUserStatus() const{ return m_userStatus; }
191 
199  inline void SetUserStatus(const UserStatusType& value) { m_userStatusHasBeenSet = true; m_userStatus = value; }
200 
208  inline void SetUserStatus(UserStatusType&& value) { m_userStatusHasBeenSet = true; m_userStatus = value; }
209 
217  inline UserType& WithUserStatus(const UserStatusType& value) { SetUserStatus(value); return *this;}
218 
226  inline UserType& WithUserStatus(UserStatusType&& value) { SetUserStatus(value); return *this;}
227 
228  private:
229  Aws::String m_username;
230  bool m_usernameHasBeenSet;
231  Aws::Vector<AttributeType> m_attributes;
232  bool m_attributesHasBeenSet;
233  Aws::Utils::DateTime m_userCreateDate;
234  bool m_userCreateDateHasBeenSet;
235  Aws::Utils::DateTime m_userLastModifiedDate;
236  bool m_userLastModifiedDateHasBeenSet;
237  bool m_enabled;
238  bool m_enabledHasBeenSet;
239  UserStatusType m_userStatus;
240  bool m_userStatusHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace CognitoIdentityProvider
245 } // namespace Aws
UserType & AddAttributes(const AttributeType &value)
Definition: UserType.h:111
const Aws::Utils::DateTime & GetUserCreateDate() const
Definition: UserType.h:121
UserType & WithUserCreateDate(Aws::Utils::DateTime &&value)
Definition: UserType.h:141
void SetUserStatus(const UserStatusType &value)
Definition: UserType.h:199
void SetUserLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: UserType.h:156
UserType & WithUserLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: UserType.h:166
UserType & WithUserLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: UserType.h:161
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetUserCreateDate(Aws::Utils::DateTime &&value)
Definition: UserType.h:131
const Aws::Vector< AttributeType > & GetAttributes() const
Definition: UserType.h:86
UserType & WithUsername(const Aws::String &value)
Definition: UserType.h:71
const UserStatusType & GetUserStatus() const
Definition: UserType.h:190
UserType & WithUsername(const char *value)
Definition: UserType.h:81
UserType & WithUserStatus(UserStatusType &&value)
Definition: UserType.h:226
UserType & AddAttributes(AttributeType &&value)
Definition: UserType.h:116
UserType & WithAttributes(const Aws::Vector< AttributeType > &value)
Definition: UserType.h:101
UserType & WithAttributes(Aws::Vector< AttributeType > &&value)
Definition: UserType.h:106
UserType & WithUsername(Aws::String &&value)
Definition: UserType.h:76
void SetUserCreateDate(const Aws::Utils::DateTime &value)
Definition: UserType.h:126
UserType & WithUserStatus(const UserStatusType &value)
Definition: UserType.h:217
void SetAttributes(Aws::Vector< AttributeType > &&value)
Definition: UserType.h:96
#define AWS_COGNITOIDENTITYPROVIDER_API
void SetUsername(Aws::String &&value)
Definition: UserType.h:61
const Aws::Utils::DateTime & GetUserLastModifiedDate() const
Definition: UserType.h:146
void SetUsername(const Aws::String &value)
Definition: UserType.h:56
void SetUserStatus(UserStatusType &&value)
Definition: UserType.h:208
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetUsername() const
Definition: UserType.h:51
UserType & WithUserCreateDate(const Aws::Utils::DateTime &value)
Definition: UserType.h:136
void SetUserLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: UserType.h:151
void SetAttributes(const Aws::Vector< AttributeType > &value)
Definition: UserType.h:91
JSON (JavaScript Object Notation).