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/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/StatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lightsail/model/AccessKeyLastUsed.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
47 {
48 public:
49 AWS_LIGHTSAIL_API AccessKey();
50 AWS_LIGHTSAIL_API AccessKey(Aws::Utils::Json::JsonView jsonValue);
51 AWS_LIGHTSAIL_API AccessKey& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
60 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
61 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
62 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
63 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
64 inline AccessKey& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
65 inline AccessKey& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
66 inline AccessKey& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
68
70
75 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
76 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
77 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
78 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
79 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
80 inline AccessKey& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
81 inline AccessKey& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
82 inline AccessKey& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
84
86
90 inline const StatusType& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline AccessKey& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
95 inline AccessKey& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
105 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
106 inline AccessKey& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
107 inline AccessKey& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
109
111
119 inline const AccessKeyLastUsed& GetLastUsed() const{ return m_lastUsed; }
120 inline bool LastUsedHasBeenSet() const { return m_lastUsedHasBeenSet; }
121 inline void SetLastUsed(const AccessKeyLastUsed& value) { m_lastUsedHasBeenSet = true; m_lastUsed = value; }
122 inline void SetLastUsed(AccessKeyLastUsed&& value) { m_lastUsedHasBeenSet = true; m_lastUsed = std::move(value); }
123 inline AccessKey& WithLastUsed(const AccessKeyLastUsed& value) { SetLastUsed(value); return *this;}
124 inline AccessKey& WithLastUsed(AccessKeyLastUsed&& value) { SetLastUsed(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_accessKeyId;
129 bool m_accessKeyIdHasBeenSet = false;
130
131 Aws::String m_secretAccessKey;
132 bool m_secretAccessKeyHasBeenSet = false;
133
134 StatusType m_status;
135 bool m_statusHasBeenSet = false;
136
137 Aws::Utils::DateTime m_createdAt;
138 bool m_createdAtHasBeenSet = false;
139
140 AccessKeyLastUsed m_lastUsed;
141 bool m_lastUsedHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Lightsail
146} // namespace Aws
AccessKey & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition AccessKey.h:106
const StatusType & GetStatus() const
Definition AccessKey.h:90
void SetSecretAccessKey(const Aws::String &value)
Definition AccessKey.h:77
void SetSecretAccessKey(const char *value)
Definition AccessKey.h:79
AWS_LIGHTSAIL_API AccessKey()
AWS_LIGHTSAIL_API AccessKey(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition AccessKey.h:104
AccessKey & WithSecretAccessKey(Aws::String &&value)
Definition AccessKey.h:81
AccessKey & WithSecretAccessKey(const Aws::String &value)
Definition AccessKey.h:80
const AccessKeyLastUsed & GetLastUsed() const
Definition AccessKey.h:119
void SetLastUsed(AccessKeyLastUsed &&value)
Definition AccessKey.h:122
AccessKey & WithSecretAccessKey(const char *value)
Definition AccessKey.h:82
void SetLastUsed(const AccessKeyLastUsed &value)
Definition AccessKey.h:121
AccessKey & WithStatus(const StatusType &value)
Definition AccessKey.h:94
AccessKey & WithAccessKeyId(const Aws::String &value)
Definition AccessKey.h:64
void SetAccessKeyId(Aws::String &&value)
Definition AccessKey.h:62
void SetStatus(const StatusType &value)
Definition AccessKey.h:92
AccessKey & WithStatus(StatusType &&value)
Definition AccessKey.h:95
bool SecretAccessKeyHasBeenSet() const
Definition AccessKey.h:76
void SetAccessKeyId(const Aws::String &value)
Definition AccessKey.h:61
AccessKey & WithAccessKeyId(const char *value)
Definition AccessKey.h:66
AccessKey & WithLastUsed(AccessKeyLastUsed &&value)
Definition AccessKey.h:124
const Aws::String & GetSecretAccessKey() const
Definition AccessKey.h:75
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition AccessKey.h:105
void SetAccessKeyId(const char *value)
Definition AccessKey.h:63
void SetStatus(StatusType &&value)
Definition AccessKey.h:93
AWS_LIGHTSAIL_API AccessKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessKey & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition AccessKey.h:107
const Aws::String & GetAccessKeyId() const
Definition AccessKey.h:59
AccessKey & WithLastUsed(const AccessKeyLastUsed &value)
Definition AccessKey.h:123
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AccessKey.h:102
AccessKey & WithAccessKeyId(Aws::String &&value)
Definition AccessKey.h:65
void SetSecretAccessKey(Aws::String &&value)
Definition AccessKey.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue