AWS SDK for C++  0.14.3
AWS SDK for C++
LoginProfile.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
16 #include <aws/iam/IAM_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace IAM
31 {
32 namespace Model
33 {
34 
41  {
42  public:
43  LoginProfile();
44  LoginProfile(const Aws::Utils::Xml::XmlNode& xmlNode);
45  LoginProfile& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
54  inline const Aws::String& GetUserName() const{ return m_userName; }
55 
60  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
61 
66  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
67 
72  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
73 
78  inline LoginProfile& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
79 
84  inline LoginProfile& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
85 
90  inline LoginProfile& WithUserName(const char* value) { SetUserName(value); return *this;}
91 
95  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
96 
100  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
101 
105  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
106 
110  inline LoginProfile& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
111 
115  inline LoginProfile& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
116 
121  inline bool GetPasswordResetRequired() const{ return m_passwordResetRequired; }
122 
127  inline void SetPasswordResetRequired(bool value) { m_passwordResetRequiredHasBeenSet = true; m_passwordResetRequired = value; }
128 
133  inline LoginProfile& WithPasswordResetRequired(bool value) { SetPasswordResetRequired(value); return *this;}
134 
135  private:
136  Aws::String m_userName;
137  bool m_userNameHasBeenSet;
138  Aws::Utils::DateTime m_createDate;
139  bool m_createDateHasBeenSet;
140  bool m_passwordResetRequired;
141  bool m_passwordResetRequiredHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace IAM
146 } // namespace Aws
LoginProfile & WithUserName(const char *value)
Definition: LoginProfile.h:90
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: LoginProfile.h:105
void SetUserName(const Aws::String &value)
Definition: LoginProfile.h:60
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: LoginProfile.h:100
LoginProfile & WithUserName(Aws::String &&value)
Definition: LoginProfile.h:84
void SetUserName(Aws::String &&value)
Definition: LoginProfile.h:66
LoginProfile & WithUserName(const Aws::String &value)
Definition: LoginProfile.h:78
LoginProfile & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: LoginProfile.h:110
const Aws::String & GetUserName() const
Definition: LoginProfile.h:54
void SetPasswordResetRequired(bool value)
Definition: LoginProfile.h:127
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
LoginProfile & WithPasswordResetRequired(bool value)
Definition: LoginProfile.h:133
LoginProfile & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: LoginProfile.h:115
const Aws::Utils::DateTime & GetCreateDate() const
Definition: LoginProfile.h:95
void SetUserName(const char *value)
Definition: LoginProfile.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
bool GetPasswordResetRequired() const
Definition: LoginProfile.h:121
JSON (JavaScript Object Notation).