AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessKeyMetadata.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
36 {
37 public:
38 AWS_IAM_API AccessKeyMetadata();
39 AWS_IAM_API AccessKeyMetadata(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetUserName() const{ return m_userName; }
51 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
52 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
53 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
54 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
55 inline AccessKeyMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
56 inline AccessKeyMetadata& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
57 inline AccessKeyMetadata& WithUserName(const char* value) { SetUserName(value); return *this;}
59
61
64 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
65 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
66 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
67 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
68 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
69 inline AccessKeyMetadata& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
70 inline AccessKeyMetadata& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
71 inline AccessKeyMetadata& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
73
75
79 inline const StatusType& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline AccessKeyMetadata& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
84 inline AccessKeyMetadata& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
92 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
93 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
94 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
95 inline AccessKeyMetadata& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
96 inline AccessKeyMetadata& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_userName;
101 bool m_userNameHasBeenSet = false;
102
103 Aws::String m_accessKeyId;
104 bool m_accessKeyIdHasBeenSet = false;
105
106 StatusType m_status;
107 bool m_statusHasBeenSet = false;
108
109 Aws::Utils::DateTime m_createDate;
110 bool m_createDateHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
void SetUserName(Aws::String &&value)
void SetAccessKeyId(const char *value)
AccessKeyMetadata & WithStatus(StatusType &&value)
AccessKeyMetadata & WithStatus(const StatusType &value)
const Aws::String & GetUserName() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccessKeyMetadata & WithUserName(const char *value)
void SetAccessKeyId(Aws::String &&value)
AccessKeyMetadata & WithCreateDate(const Aws::Utils::DateTime &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetUserName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
AWS_IAM_API AccessKeyMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessKeyMetadata & WithAccessKeyId(Aws::String &&value)
AccessKeyMetadata & WithUserName(Aws::String &&value)
const Aws::String & GetAccessKeyId() const
void SetUserName(const char *value)
void SetStatus(StatusType &&value)
AWS_IAM_API AccessKeyMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
const StatusType & GetStatus() const
void SetAccessKeyId(const Aws::String &value)
AccessKeyMetadata & WithUserName(const Aws::String &value)
void SetStatus(const StatusType &value)
AccessKeyMetadata & WithAccessKeyId(const Aws::String &value)
AccessKeyMetadata & WithCreateDate(Aws::Utils::DateTime &&value)
AccessKeyMetadata & WithAccessKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream