AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
58 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::String>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::String>
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
77 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
78 template <typename PrincipalIdT = Aws::String>
79 void SetPrincipalId(PrincipalIdT&& value) {
80 m_principalIdHasBeenSet = true;
81 m_principalId = std::forward<PrincipalIdT>(value);
82 }
83 template <typename PrincipalIdT = Aws::String>
84 AwsIamAccessKeyDetails& WithPrincipalId(PrincipalIdT&& value) {
85 SetPrincipalId(std::forward<PrincipalIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetPrincipalType() const { return m_principalType; }
95 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
96 template <typename PrincipalTypeT = Aws::String>
97 void SetPrincipalType(PrincipalTypeT&& value) {
98 m_principalTypeHasBeenSet = true;
99 m_principalType = std::forward<PrincipalTypeT>(value);
100 }
101 template <typename PrincipalTypeT = Aws::String>
102 AwsIamAccessKeyDetails& WithPrincipalType(PrincipalTypeT&& value) {
103 SetPrincipalType(std::forward<PrincipalTypeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetPrincipalName() const { return m_principalName; }
113 inline bool PrincipalNameHasBeenSet() const { return m_principalNameHasBeenSet; }
114 template <typename PrincipalNameT = Aws::String>
115 void SetPrincipalName(PrincipalNameT&& value) {
116 m_principalNameHasBeenSet = true;
117 m_principalName = std::forward<PrincipalNameT>(value);
118 }
119 template <typename PrincipalNameT = Aws::String>
120 AwsIamAccessKeyDetails& WithPrincipalName(PrincipalNameT&& value) {
121 SetPrincipalName(std::forward<PrincipalNameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetAccountId() const { return m_accountId; }
131 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
132 template <typename AccountIdT = Aws::String>
133 void SetAccountId(AccountIdT&& value) {
134 m_accountIdHasBeenSet = true;
135 m_accountId = std::forward<AccountIdT>(value);
136 }
137 template <typename AccountIdT = Aws::String>
139 SetAccountId(std::forward<AccountIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
149 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
150 template <typename AccessKeyIdT = Aws::String>
151 void SetAccessKeyId(AccessKeyIdT&& value) {
152 m_accessKeyIdHasBeenSet = true;
153 m_accessKeyId = std::forward<AccessKeyIdT>(value);
154 }
155 template <typename AccessKeyIdT = Aws::String>
157 SetAccessKeyId(std::forward<AccessKeyIdT>(value));
158 return *this;
159 }
161
163
166 inline const AwsIamAccessKeySessionContext& GetSessionContext() const { return m_sessionContext; }
167 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
168 template <typename SessionContextT = AwsIamAccessKeySessionContext>
169 void SetSessionContext(SessionContextT&& value) {
170 m_sessionContextHasBeenSet = true;
171 m_sessionContext = std::forward<SessionContextT>(value);
172 }
173 template <typename SessionContextT = AwsIamAccessKeySessionContext>
174 AwsIamAccessKeyDetails& WithSessionContext(SessionContextT&& value) {
175 SetSessionContext(std::forward<SessionContextT>(value));
176 return *this;
177 }
179 private:
181
182 Aws::String m_createdAt;
183
184 Aws::String m_principalId;
185
186 Aws::String m_principalType;
187
188 Aws::String m_principalName;
189
190 Aws::String m_accountId;
191
192 Aws::String m_accessKeyId;
193
194 AwsIamAccessKeySessionContext m_sessionContext;
195 bool m_statusHasBeenSet = false;
196 bool m_createdAtHasBeenSet = false;
197 bool m_principalIdHasBeenSet = false;
198 bool m_principalTypeHasBeenSet = false;
199 bool m_principalNameHasBeenSet = false;
200 bool m_accountIdHasBeenSet = false;
201 bool m_accessKeyIdHasBeenSet = false;
202 bool m_sessionContextHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace SecurityHub
207} // 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