AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessKey.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/StatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace IAM
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_IAM_API AccessKey();
44 AWS_IAM_API AccessKey(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_IAM_API AccessKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::String& GetUserName() const{ return m_userName; }
56 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
57 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
58 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
59 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
60 inline AccessKey& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
61 inline AccessKey& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
62 inline AccessKey& WithUserName(const char* value) { SetUserName(value); return *this;}
64
66
69 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
70 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
71 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
72 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
73 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
74 inline AccessKey& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
75 inline AccessKey& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
76 inline AccessKey& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
78
80
84 inline const StatusType& GetStatus() const{ return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
87 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
88 inline AccessKey& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
89 inline AccessKey& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
97 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
98 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
99 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
100 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
101 inline AccessKey& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
102 inline AccessKey& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
103 inline AccessKey& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
111 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
112 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
113 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
114 inline AccessKey& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
115 inline AccessKey& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_userName;
120 bool m_userNameHasBeenSet = false;
121
122 Aws::String m_accessKeyId;
123 bool m_accessKeyIdHasBeenSet = false;
124
125 StatusType m_status;
126 bool m_statusHasBeenSet = false;
127
128 Aws::String m_secretAccessKey;
129 bool m_secretAccessKeyHasBeenSet = false;
130
131 Aws::Utils::DateTime m_createDate;
132 bool m_createDateHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace IAM
137} // namespace Aws
bool StatusHasBeenSet() const
Definition AccessKey.h:85
AWS_IAM_API AccessKey(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserName(Aws::String &&value)
Definition AccessKey.h:58
bool AccessKeyIdHasBeenSet() const
Definition AccessKey.h:70
const StatusType & GetStatus() const
Definition AccessKey.h:84
void SetAccessKeyId(const Aws::String &value)
Definition AccessKey.h:71
AccessKey & WithCreateDate(const Aws::Utils::DateTime &value)
Definition AccessKey.h:114
AccessKey & WithSecretAccessKey(const Aws::String &value)
Definition AccessKey.h:101
AccessKey & WithSecretAccessKey(Aws::String &&value)
Definition AccessKey.h:102
const Aws::String & GetUserName() const
Definition AccessKey.h:55
AccessKey & WithAccessKeyId(const char *value)
Definition AccessKey.h:76
void SetStatus(const StatusType &value)
Definition AccessKey.h:86
bool UserNameHasBeenSet() const
Definition AccessKey.h:56
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition AccessKey.h:113
void SetSecretAccessKey(const char *value)
Definition AccessKey.h:100
AccessKey & WithSecretAccessKey(const char *value)
Definition AccessKey.h:103
void SetSecretAccessKey(Aws::String &&value)
Definition AccessKey.h:99
void SetStatus(StatusType &&value)
Definition AccessKey.h:87
void SetUserName(const char *value)
Definition AccessKey.h:59
const Aws::Utils::DateTime & GetCreateDate() const
Definition AccessKey.h:110
bool SecretAccessKeyHasBeenSet() const
Definition AccessKey.h:97
void SetUserName(const Aws::String &value)
Definition AccessKey.h:57
AccessKey & WithUserName(Aws::String &&value)
Definition AccessKey.h:61
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition AccessKey.h:112
AccessKey & WithCreateDate(Aws::Utils::DateTime &&value)
Definition AccessKey.h:115
AccessKey & WithUserName(const Aws::String &value)
Definition AccessKey.h:60
void SetSecretAccessKey(const Aws::String &value)
Definition AccessKey.h:98
AccessKey & WithStatus(StatusType &&value)
Definition AccessKey.h:89
void SetAccessKeyId(const char *value)
Definition AccessKey.h:73
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccessKey & WithUserName(const char *value)
Definition AccessKey.h:62
const Aws::String & GetAccessKeyId() const
Definition AccessKey.h:69
bool CreateDateHasBeenSet() const
Definition AccessKey.h:111
const Aws::String & GetSecretAccessKey() const
Definition AccessKey.h:96
AccessKey & WithAccessKeyId(const Aws::String &value)
Definition AccessKey.h:74
void SetAccessKeyId(Aws::String &&value)
Definition AccessKey.h:72
AccessKey & WithStatus(const StatusType &value)
Definition AccessKey.h:88
AccessKey & WithAccessKeyId(Aws::String &&value)
Definition AccessKey.h:75
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API AccessKey & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream