AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ProgrammaticAccessDetails.h
1
6#pragma once
7#include <aws/account-access-runtime/AccountAccessRuntime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccountAccessRuntime {
21namespace Model {
22
30 public:
31 AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails() = default;
32 AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCOUNTACCESSRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
41 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
42 template <typename AccessKeyIdT = Aws::String>
43 void SetAccessKeyId(AccessKeyIdT&& value) {
44 m_accessKeyIdHasBeenSet = true;
45 m_accessKeyId = std::forward<AccessKeyIdT>(value);
46 }
47 template <typename AccessKeyIdT = Aws::String>
49 SetAccessKeyId(std::forward<AccessKeyIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSecretAccessKey() const { return m_secretAccessKey; }
60 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
61 template <typename SecretAccessKeyT = Aws::String>
62 void SetSecretAccessKey(SecretAccessKeyT&& value) {
63 m_secretAccessKeyHasBeenSet = true;
64 m_secretAccessKey = std::forward<SecretAccessKeyT>(value);
65 }
66 template <typename SecretAccessKeyT = Aws::String>
68 SetSecretAccessKey(std::forward<SecretAccessKeyT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetSessionToken() const { return m_sessionToken; }
79 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
80 template <typename SessionTokenT = Aws::String>
81 void SetSessionToken(SessionTokenT&& value) {
82 m_sessionTokenHasBeenSet = true;
83 m_sessionToken = std::forward<SessionTokenT>(value);
84 }
85 template <typename SessionTokenT = Aws::String>
87 SetSessionToken(std::forward<SessionTokenT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
98 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
99 template <typename ExpiresAtT = Aws::Utils::DateTime>
100 void SetExpiresAt(ExpiresAtT&& value) {
101 m_expiresAtHasBeenSet = true;
102 m_expiresAt = std::forward<ExpiresAtT>(value);
103 }
104 template <typename ExpiresAtT = Aws::Utils::DateTime>
106 SetExpiresAt(std::forward<ExpiresAtT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_accessKeyId;
112
113 Aws::String m_secretAccessKey;
114
115 Aws::String m_sessionToken;
116
117 Aws::Utils::DateTime m_expiresAt{};
118 bool m_accessKeyIdHasBeenSet = false;
119 bool m_secretAccessKeyHasBeenSet = false;
120 bool m_sessionTokenHasBeenSet = false;
121 bool m_expiresAtHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AccountAccessRuntime
126} // namespace Aws
ProgrammaticAccessDetails & WithAccessKeyId(AccessKeyIdT &&value)
AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails(Aws::Utils::Json::JsonView jsonValue)
ProgrammaticAccessDetails & WithSecretAccessKey(SecretAccessKeyT &&value)
AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails()=default
AWS_ACCOUNTACCESSRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ProgrammaticAccessDetails & WithExpiresAt(ExpiresAtT &&value)
AWS_ACCOUNTACCESSRUNTIME_API ProgrammaticAccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ProgrammaticAccessDetails & WithSessionToken(SessionTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue