AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 AwsIamAccessKeyStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(AwsIamAccessKeyStatus value) { m_statusHasBeenSet = true; m_status = value; }
49 inline AwsIamAccessKeyDetails& WithStatus(AwsIamAccessKeyStatus value) { SetStatus(value); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
62 template<typename CreatedAtT = Aws::String>
63 AwsIamAccessKeyDetails& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
71 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
72 template<typename PrincipalIdT = Aws::String>
73 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
74 template<typename PrincipalIdT = Aws::String>
75 AwsIamAccessKeyDetails& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetPrincipalType() const { return m_principalType; }
83 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
84 template<typename PrincipalTypeT = Aws::String>
85 void SetPrincipalType(PrincipalTypeT&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::forward<PrincipalTypeT>(value); }
86 template<typename PrincipalTypeT = Aws::String>
87 AwsIamAccessKeyDetails& WithPrincipalType(PrincipalTypeT&& value) { SetPrincipalType(std::forward<PrincipalTypeT>(value)); return *this;}
89
91
94 inline const Aws::String& GetPrincipalName() const { return m_principalName; }
95 inline bool PrincipalNameHasBeenSet() const { return m_principalNameHasBeenSet; }
96 template<typename PrincipalNameT = Aws::String>
97 void SetPrincipalName(PrincipalNameT&& value) { m_principalNameHasBeenSet = true; m_principalName = std::forward<PrincipalNameT>(value); }
98 template<typename PrincipalNameT = Aws::String>
99 AwsIamAccessKeyDetails& WithPrincipalName(PrincipalNameT&& value) { SetPrincipalName(std::forward<PrincipalNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetAccountId() const { return m_accountId; }
107 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
108 template<typename AccountIdT = Aws::String>
109 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
110 template<typename AccountIdT = Aws::String>
111 AwsIamAccessKeyDetails& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
113
115
118 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
119 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
120 template<typename AccessKeyIdT = Aws::String>
121 void SetAccessKeyId(AccessKeyIdT&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::forward<AccessKeyIdT>(value); }
122 template<typename AccessKeyIdT = Aws::String>
123 AwsIamAccessKeyDetails& WithAccessKeyId(AccessKeyIdT&& value) { SetAccessKeyId(std::forward<AccessKeyIdT>(value)); return *this;}
125
127
130 inline const AwsIamAccessKeySessionContext& GetSessionContext() const { return m_sessionContext; }
131 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
132 template<typename SessionContextT = AwsIamAccessKeySessionContext>
133 void SetSessionContext(SessionContextT&& value) { m_sessionContextHasBeenSet = true; m_sessionContext = std::forward<SessionContextT>(value); }
134 template<typename SessionContextT = AwsIamAccessKeySessionContext>
135 AwsIamAccessKeyDetails& WithSessionContext(SessionContextT&& value) { SetSessionContext(std::forward<SessionContextT>(value)); return *this;}
137 private:
138
140 bool m_statusHasBeenSet = false;
141
142 Aws::String m_createdAt;
143 bool m_createdAtHasBeenSet = false;
144
145 Aws::String m_principalId;
146 bool m_principalIdHasBeenSet = false;
147
148 Aws::String m_principalType;
149 bool m_principalTypeHasBeenSet = false;
150
151 Aws::String m_principalName;
152 bool m_principalNameHasBeenSet = false;
153
154 Aws::String m_accountId;
155 bool m_accountIdHasBeenSet = false;
156
157 Aws::String m_accessKeyId;
158 bool m_accessKeyIdHasBeenSet = false;
159
160 AwsIamAccessKeySessionContext m_sessionContext;
161 bool m_sessionContextHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace SecurityHub
166} // 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