AWS SDK for C++  1.9.108
AWS SDK for C++
AccessKey.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28 
46  {
47  public:
52 
53 
57  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
58 
62  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
63 
67  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
68 
72  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
73 
77  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
78 
82  inline AccessKey& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
83 
87  inline AccessKey& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
88 
92  inline AccessKey& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
93 
94 
100  inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
101 
107  inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
108 
114  inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
115 
121  inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
122 
128  inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
129 
135  inline AccessKey& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
136 
142  inline AccessKey& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
143 
149  inline AccessKey& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
150 
151 
156  inline const StatusType& GetStatus() const{ return m_status; }
157 
162  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 
168  inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
169 
174  inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
175 
180  inline AccessKey& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
181 
186  inline AccessKey& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
187 
188 
192  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
193 
197  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
198 
202  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
203 
207  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
208 
212  inline AccessKey& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
213 
217  inline AccessKey& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
218 
219 
227  inline const AccessKeyLastUsed& GetLastUsed() const{ return m_lastUsed; }
228 
236  inline bool LastUsedHasBeenSet() const { return m_lastUsedHasBeenSet; }
237 
245  inline void SetLastUsed(const AccessKeyLastUsed& value) { m_lastUsedHasBeenSet = true; m_lastUsed = value; }
246 
254  inline void SetLastUsed(AccessKeyLastUsed&& value) { m_lastUsedHasBeenSet = true; m_lastUsed = std::move(value); }
255 
263  inline AccessKey& WithLastUsed(const AccessKeyLastUsed& value) { SetLastUsed(value); return *this;}
264 
272  inline AccessKey& WithLastUsed(AccessKeyLastUsed&& value) { SetLastUsed(std::move(value)); return *this;}
273 
274  private:
275 
276  Aws::String m_accessKeyId;
277  bool m_accessKeyIdHasBeenSet;
278 
279  Aws::String m_secretAccessKey;
280  bool m_secretAccessKeyHasBeenSet;
281 
282  StatusType m_status;
283  bool m_statusHasBeenSet;
284 
285  Aws::Utils::DateTime m_createdAt;
286  bool m_createdAtHasBeenSet;
287 
288  AccessKeyLastUsed m_lastUsed;
289  bool m_lastUsedHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace Lightsail
294 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::AccessKey::WithAccessKeyId
AccessKey & WithAccessKeyId(const Aws::String &value)
Definition: AccessKey.h:82
Aws::Lightsail::Model::AccessKey::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: AccessKey.h:192
Aws::Lightsail::Model::AccessKey
Definition: AccessKey.h:46
Aws::Lightsail::Model::AccessKey::SetLastUsed
void SetLastUsed(const AccessKeyLastUsed &value)
Definition: AccessKey.h:245
Aws::Lightsail::Model::AccessKey::GetSecretAccessKey
const Aws::String & GetSecretAccessKey() const
Definition: AccessKey.h:100
Aws::Lightsail::Model::AccessKey::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: AccessKey.h:62
Aws::Lightsail::Model::AccessKey::SetSecretAccessKey
void SetSecretAccessKey(Aws::String &&value)
Definition: AccessKey.h:121
Aws::Lightsail::Model::AccessKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DateTime.h
Aws::Lightsail::Model::AccessKey::SetStatus
void SetStatus(StatusType &&value)
Definition: AccessKey.h:174
Aws::Lightsail::Model::AccessKey::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: AccessKey.h:207
Aws::Lightsail::Model::AccessKey::SetSecretAccessKey
void SetSecretAccessKey(const char *value)
Definition: AccessKey.h:128
Aws::Lightsail::Model::AccessKey::GetStatus
const StatusType & GetStatus() const
Definition: AccessKey.h:156
Aws::Lightsail::Model::AccessKey::WithSecretAccessKey
AccessKey & WithSecretAccessKey(Aws::String &&value)
Definition: AccessKey.h:142
Aws::Lightsail::Model::AccessKey::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: AccessKey.h:197
Aws::Lightsail::Model::AccessKey::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: AccessKey.h:202
StatusType.h
Aws::Lightsail::Model::AccessKey::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: AccessKey.h:57
Aws::Lightsail::Model::AccessKey::WithSecretAccessKey
AccessKey & WithSecretAccessKey(const Aws::String &value)
Definition: AccessKey.h:135
Aws::Lightsail::Model::AccessKeyLastUsed
Definition: AccessKeyLastUsed.h:35
Aws::Lightsail::Model::AccessKey::LastUsedHasBeenSet
bool LastUsedHasBeenSet() const
Definition: AccessKey.h:236
Aws::Lightsail::Model::AccessKey::WithSecretAccessKey
AccessKey & WithSecretAccessKey(const char *value)
Definition: AccessKey.h:149
Aws::Lightsail::Model::AccessKey::SetStatus
void SetStatus(const StatusType &value)
Definition: AccessKey.h:168
Aws::Lightsail::Model::AccessKey::WithAccessKeyId
AccessKey & WithAccessKeyId(const char *value)
Definition: AccessKey.h:92
Aws::Lightsail::Model::AccessKey::GetLastUsed
const AccessKeyLastUsed & GetLastUsed() const
Definition: AccessKey.h:227
Aws::Lightsail::Model::AccessKey::WithLastUsed
AccessKey & WithLastUsed(AccessKeyLastUsed &&value)
Definition: AccessKey.h:272
Aws::Lightsail::Model::AccessKey::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: AccessKey.h:77
Aws::Lightsail::Model::AccessKey::WithStatus
AccessKey & WithStatus(const StatusType &value)
Definition: AccessKey.h:180
Aws::Lightsail::Model::AccessKey::SetSecretAccessKey
void SetSecretAccessKey(const Aws::String &value)
Definition: AccessKey.h:114
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::AccessKey::AccessKey
AccessKey(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::AccessKey::WithCreatedAt
AccessKey & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: AccessKey.h:217
Aws::Lightsail::Model::AccessKey::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: AccessKey.h:72
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AccessKey::SetLastUsed
void SetLastUsed(AccessKeyLastUsed &&value)
Definition: AccessKey.h:254
Aws::Lightsail::Model::AccessKey::operator=
AccessKey & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::StatusType
StatusType
Definition: StatusType.h:17
Aws::Lightsail::Model::AccessKey::WithAccessKeyId
AccessKey & WithAccessKeyId(Aws::String &&value)
Definition: AccessKey.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AccessKey::WithLastUsed
AccessKey & WithLastUsed(const AccessKeyLastUsed &value)
Definition: AccessKey.h:263
Aws::Lightsail::Model::AccessKey::WithStatus
AccessKey & WithStatus(StatusType &&value)
Definition: AccessKey.h:186
Aws::Lightsail::Model::AccessKey::SecretAccessKeyHasBeenSet
bool SecretAccessKeyHasBeenSet() const
Definition: AccessKey.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AccessKey::AccessKey
AccessKey()
Aws::Lightsail::Model::AccessKey::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AccessKey.h:162
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
AccessKeyLastUsed.h
Aws::Lightsail::Model::AccessKey::WithCreatedAt
AccessKey & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: AccessKey.h:212
Aws::Lightsail::Model::AccessKey::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: AccessKey.h:67