AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
AwsIamAccessKeyDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AwsIamAccessKeySessionContext.h>
10#include <aws/securityhub/model/AwsIamAccessKeyStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API AwsIamAccessKeyDetails() = default;
32 AWS_SECURITYHUB_API AwsIamAccessKeyDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline AwsIamAccessKeyStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(AwsIamAccessKeyStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
51
53
59 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::String>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::String>
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
78 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
79 template <typename PrincipalIdT = Aws::String>
80 void SetPrincipalId(PrincipalIdT&& value) {
81 m_principalIdHasBeenSet = true;
82 m_principalId = std::forward<PrincipalIdT>(value);
83 }
84 template <typename PrincipalIdT = Aws::String>
85 AwsIamAccessKeyDetails& WithPrincipalId(PrincipalIdT&& value) {
86 SetPrincipalId(std::forward<PrincipalIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetPrincipalType() const { return m_principalType; }
96 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
97 template <typename PrincipalTypeT = Aws::String>
98 void SetPrincipalType(PrincipalTypeT&& value) {
99 m_principalTypeHasBeenSet = true;
100 m_principalType = std::forward<PrincipalTypeT>(value);
101 }
102 template <typename PrincipalTypeT = Aws::String>
103 AwsIamAccessKeyDetails& WithPrincipalType(PrincipalTypeT&& value) {
104 SetPrincipalType(std::forward<PrincipalTypeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetPrincipalName() const { return m_principalName; }
114 inline bool PrincipalNameHasBeenSet() const { return m_principalNameHasBeenSet; }
115 template <typename PrincipalNameT = Aws::String>
116 void SetPrincipalName(PrincipalNameT&& value) {
117 m_principalNameHasBeenSet = true;
118 m_principalName = std::forward<PrincipalNameT>(value);
119 }
120 template <typename PrincipalNameT = Aws::String>
121 AwsIamAccessKeyDetails& WithPrincipalName(PrincipalNameT&& value) {
122 SetPrincipalName(std::forward<PrincipalNameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetAccountId() const { return m_accountId; }
132 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
133 template <typename AccountIdT = Aws::String>
134 void SetAccountId(AccountIdT&& value) {
135 m_accountIdHasBeenSet = true;
136 m_accountId = std::forward<AccountIdT>(value);
137 }
138 template <typename AccountIdT = Aws::String>
140 SetAccountId(std::forward<AccountIdT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
150 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
151 template <typename AccessKeyIdT = Aws::String>
152 void SetAccessKeyId(AccessKeyIdT&& value) {
153 m_accessKeyIdHasBeenSet = true;
154 m_accessKeyId = std::forward<AccessKeyIdT>(value);
155 }
156 template <typename AccessKeyIdT = Aws::String>
158 SetAccessKeyId(std::forward<AccessKeyIdT>(value));
159 return *this;
160 }
162
164
167 inline const AwsIamAccessKeySessionContext& GetSessionContext() const { return m_sessionContext; }
168 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
169 template <typename SessionContextT = AwsIamAccessKeySessionContext>
170 void SetSessionContext(SessionContextT&& value) {
171 m_sessionContextHasBeenSet = true;
172 m_sessionContext = std::forward<SessionContextT>(value);
173 }
174 template <typename SessionContextT = AwsIamAccessKeySessionContext>
175 AwsIamAccessKeyDetails& WithSessionContext(SessionContextT&& value) {
176 SetSessionContext(std::forward<SessionContextT>(value));
177 return *this;
178 }
180 private:
182
183 Aws::String m_createdAt;
184
185 Aws::String m_principalId;
186
187 Aws::String m_principalType;
188
189 Aws::String m_principalName;
190
191 Aws::String m_accountId;
192
193 Aws::String m_accessKeyId;
194
195 AwsIamAccessKeySessionContext m_sessionContext;
196 bool m_statusHasBeenSet = false;
197 bool m_createdAtHasBeenSet = false;
198 bool m_principalIdHasBeenSet = false;
199 bool m_principalTypeHasBeenSet = false;
200 bool m_principalNameHasBeenSet = false;
201 bool m_accountIdHasBeenSet = false;
202 bool m_accessKeyIdHasBeenSet = false;
203 bool m_sessionContextHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace SecurityHub
208} // namespace Aws
AwsIamAccessKeyDetails & WithAccountId(AccountIdT &&value)
AwsIamAccessKeyDetails & WithStatus(AwsIamAccessKeyStatus value)
const AwsIamAccessKeySessionContext & GetSessionContext() const
AwsIamAccessKeyDetails & WithPrincipalType(PrincipalTypeT &&value)
AwsIamAccessKeyDetails & WithSessionContext(SessionContextT &&value)
AwsIamAccessKeyDetails & WithAccessKeyId(AccessKeyIdT &&value)
AwsIamAccessKeyDetails & WithPrincipalName(PrincipalNameT &&value)
AWS_SECURITYHUB_API AwsIamAccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsIamAccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamAccessKeyDetails & WithPrincipalId(PrincipalIdT &&value)
AWS_SECURITYHUB_API AwsIamAccessKeyDetails()=default
AwsIamAccessKeyDetails & WithCreatedAt(CreatedAtT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue