AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamAccessKeyDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsIamAccessKeyStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsIamAccessKeySessionContext.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsIamAccessKeyDetails();
37 AWS_SECURITYHUB_API AwsIamAccessKeyDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AwsIamAccessKeyStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const AwsIamAccessKeyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(AwsIamAccessKeyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline AwsIamAccessKeyDetails& WithStatus(const AwsIamAccessKeyStatus& value) { SetStatus(value); return *this;}
51 inline AwsIamAccessKeyDetails& WithStatus(AwsIamAccessKeyStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
72 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
73 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
74 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
75 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
76 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
77 inline AwsIamAccessKeyDetails& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
78 inline AwsIamAccessKeyDetails& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
79 inline AwsIamAccessKeyDetails& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
81
83
86 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
87 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
88 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
89 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
90 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
91 inline AwsIamAccessKeyDetails& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
92 inline AwsIamAccessKeyDetails& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
93 inline AwsIamAccessKeyDetails& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
95
97
100 inline const Aws::String& GetPrincipalType() const{ return m_principalType; }
101 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
102 inline void SetPrincipalType(const Aws::String& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
103 inline void SetPrincipalType(Aws::String&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
104 inline void SetPrincipalType(const char* value) { m_principalTypeHasBeenSet = true; m_principalType.assign(value); }
105 inline AwsIamAccessKeyDetails& WithPrincipalType(const Aws::String& value) { SetPrincipalType(value); return *this;}
106 inline AwsIamAccessKeyDetails& WithPrincipalType(Aws::String&& value) { SetPrincipalType(std::move(value)); return *this;}
107 inline AwsIamAccessKeyDetails& WithPrincipalType(const char* value) { SetPrincipalType(value); return *this;}
109
111
114 inline const Aws::String& GetPrincipalName() const{ return m_principalName; }
115 inline bool PrincipalNameHasBeenSet() const { return m_principalNameHasBeenSet; }
116 inline void SetPrincipalName(const Aws::String& value) { m_principalNameHasBeenSet = true; m_principalName = value; }
117 inline void SetPrincipalName(Aws::String&& value) { m_principalNameHasBeenSet = true; m_principalName = std::move(value); }
118 inline void SetPrincipalName(const char* value) { m_principalNameHasBeenSet = true; m_principalName.assign(value); }
119 inline AwsIamAccessKeyDetails& WithPrincipalName(const Aws::String& value) { SetPrincipalName(value); return *this;}
120 inline AwsIamAccessKeyDetails& WithPrincipalName(Aws::String&& value) { SetPrincipalName(std::move(value)); return *this;}
121 inline AwsIamAccessKeyDetails& WithPrincipalName(const char* value) { SetPrincipalName(value); return *this;}
123
125
128 inline const Aws::String& GetAccountId() const{ return m_accountId; }
129 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
130 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
131 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
132 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
133 inline AwsIamAccessKeyDetails& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
134 inline AwsIamAccessKeyDetails& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
135 inline AwsIamAccessKeyDetails& WithAccountId(const char* value) { SetAccountId(value); return *this;}
137
139
142 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
143 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
144 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
145 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
146 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
147 inline AwsIamAccessKeyDetails& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
148 inline AwsIamAccessKeyDetails& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
149 inline AwsIamAccessKeyDetails& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
151
153
156 inline const AwsIamAccessKeySessionContext& GetSessionContext() const{ return m_sessionContext; }
157 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
158 inline void SetSessionContext(const AwsIamAccessKeySessionContext& value) { m_sessionContextHasBeenSet = true; m_sessionContext = value; }
159 inline void SetSessionContext(AwsIamAccessKeySessionContext&& value) { m_sessionContextHasBeenSet = true; m_sessionContext = std::move(value); }
163 private:
164
165 AwsIamAccessKeyStatus m_status;
166 bool m_statusHasBeenSet = false;
167
168 Aws::String m_createdAt;
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::String m_principalId;
172 bool m_principalIdHasBeenSet = false;
173
174 Aws::String m_principalType;
175 bool m_principalTypeHasBeenSet = false;
176
177 Aws::String m_principalName;
178 bool m_principalNameHasBeenSet = false;
179
180 Aws::String m_accountId;
181 bool m_accountIdHasBeenSet = false;
182
183 Aws::String m_accessKeyId;
184 bool m_accessKeyIdHasBeenSet = false;
185
186 AwsIamAccessKeySessionContext m_sessionContext;
187 bool m_sessionContextHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SecurityHub
192} // namespace Aws
AwsIamAccessKeyDetails & WithSessionContext(const AwsIamAccessKeySessionContext &value)
AwsIamAccessKeyDetails & WithPrincipalId(const char *value)
AwsIamAccessKeyDetails & WithPrincipalName(const char *value)
AwsIamAccessKeyDetails & WithPrincipalName(Aws::String &&value)
AwsIamAccessKeyDetails & WithAccessKeyId(const char *value)
const AwsIamAccessKeyStatus & GetStatus() const
AwsIamAccessKeyDetails & WithAccountId(const char *value)
AwsIamAccessKeyDetails & WithStatus(AwsIamAccessKeyStatus &&value)
void SetStatus(const AwsIamAccessKeyStatus &value)
AwsIamAccessKeyDetails & WithPrincipalType(Aws::String &&value)
AwsIamAccessKeyDetails & WithAccessKeyId(const Aws::String &value)
const AwsIamAccessKeySessionContext & GetSessionContext() const
AwsIamAccessKeyDetails & WithCreatedAt(const Aws::String &value)
AwsIamAccessKeyDetails & WithCreatedAt(Aws::String &&value)
AwsIamAccessKeyDetails & WithStatus(const AwsIamAccessKeyStatus &value)
AwsIamAccessKeyDetails & WithCreatedAt(const char *value)
void SetSessionContext(AwsIamAccessKeySessionContext &&value)
AwsIamAccessKeyDetails & WithPrincipalId(const Aws::String &value)
void SetSessionContext(const AwsIamAccessKeySessionContext &value)
AwsIamAccessKeyDetails & WithAccountId(const Aws::String &value)
AwsIamAccessKeyDetails & WithAccessKeyId(Aws::String &&value)
AwsIamAccessKeyDetails & WithAccountId(Aws::String &&value)
AWS_SECURITYHUB_API AwsIamAccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamAccessKeyDetails & WithPrincipalType(const char *value)
AWS_SECURITYHUB_API AwsIamAccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamAccessKeyDetails & WithSessionContext(AwsIamAccessKeySessionContext &&value)
AwsIamAccessKeyDetails & WithPrincipalType(const Aws::String &value)
AwsIamAccessKeyDetails & WithPrincipalId(Aws::String &&value)
AwsIamAccessKeyDetails & WithPrincipalName(const Aws::String &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