AWS SDK for C++  1.9.102
AWS SDK for C++
AwsIamAccessKeySessionContextSessionIssuer.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 
69  inline AwsIamAccessKeySessionContextSessionIssuer& WithType(const Aws::String& value) { SetType(value); return *this;}
70 
74  inline AwsIamAccessKeySessionContextSessionIssuer& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
75 
79  inline AwsIamAccessKeySessionContextSessionIssuer& WithType(const char* value) { SetType(value); return *this;}
80 
81 
86  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
87 
92  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
93 
98  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
99 
104  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
105 
110  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
111 
116  inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
117 
122  inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
123 
128  inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
129 
130 
134  inline const Aws::String& GetArn() const{ return m_arn; }
135 
139  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
140 
144  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
145 
149  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
150 
154  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
155 
159  inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(const Aws::String& value) { SetArn(value); return *this;}
160 
164  inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
165 
169  inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(const char* value) { SetArn(value); return *this;}
170 
171 
176  inline const Aws::String& GetAccountId() const{ return m_accountId; }
177 
182  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
183 
188  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
189 
194  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
195 
200  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
201 
206  inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
207 
212  inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
213 
218  inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(const char* value) { SetAccountId(value); return *this;}
219 
220 
224  inline const Aws::String& GetUserName() const{ return m_userName; }
225 
229  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
230 
234  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
235 
239  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
240 
244  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
245 
249  inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
250 
254  inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
255 
259  inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(const char* value) { SetUserName(value); return *this;}
260 
261  private:
262 
263  Aws::String m_type;
264  bool m_typeHasBeenSet;
265 
266  Aws::String m_principalId;
267  bool m_principalIdHasBeenSet;
268 
269  Aws::String m_arn;
270  bool m_arnHasBeenSet;
271 
272  Aws::String m_accountId;
273  bool m_accountIdHasBeenSet;
274 
275  Aws::String m_userName;
276  bool m_userNameHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace SecurityHub
281 } // namespace Aws
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithUserName
AwsIamAccessKeySessionContextSessionIssuer & WithUserName(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:249
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:33
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:139
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:49
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:104
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:182
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithType
AwsIamAccessKeySessionContextSessionIssuer & WithType(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:69
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithType
AwsIamAccessKeySessionContextSessionIssuer & WithType(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:79
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithUserName
AwsIamAccessKeySessionContextSessionIssuer & WithUserName(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:259
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithAccountId
AwsIamAccessKeySessionContextSessionIssuer & WithAccountId(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:218
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithPrincipalId
AwsIamAccessKeySessionContextSessionIssuer & WithPrincipalId(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:122
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetArn
void SetArn(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:154
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithPrincipalId
AwsIamAccessKeySessionContextSessionIssuer & WithPrincipalId(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:116
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetType
void SetType(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:64
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithArn
AwsIamAccessKeySessionContextSessionIssuer & WithArn(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:169
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetArn
void SetArn(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:149
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::GetArn
const Aws::String & GetArn() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:134
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:188
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetUserName
void SetUserName(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:244
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetArn
void SetArn(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:144
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetType
void SetType(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:59
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::GetUserName
const Aws::String & GetUserName() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:224
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetAccountId
void SetAccountId(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:200
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithArn
AwsIamAccessKeySessionContextSessionIssuer & WithArn(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:164
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:194
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:86
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithAccountId
AwsIamAccessKeySessionContextSessionIssuer & WithAccountId(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:212
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetType
void SetType(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:54
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::GetType
const Aws::String & GetType() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:44
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithPrincipalId
AwsIamAccessKeySessionContextSessionIssuer & WithPrincipalId(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:128
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::AwsIamAccessKeySessionContextSessionIssuer
AwsIamAccessKeySessionContextSessionIssuer(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetUserName
void SetUserName(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:239
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithAccountId
AwsIamAccessKeySessionContextSessionIssuer & WithAccountId(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:206
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:229
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithUserName
AwsIamAccessKeySessionContextSessionIssuer & WithUserName(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:254
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:98
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithArn
AwsIamAccessKeySessionContextSessionIssuer & WithArn(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:159
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::WithType
AwsIamAccessKeySessionContextSessionIssuer & WithType(Aws::String &&value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:74
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::AwsIamAccessKeySessionContextSessionIssuer
AwsIamAccessKeySessionContextSessionIssuer()
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::operator=
AwsIamAccessKeySessionContextSessionIssuer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:92
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::GetAccountId
const Aws::String & GetAccountId() const
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:176
Aws::SecurityHub::Model::AwsIamAccessKeySessionContextSessionIssuer::SetUserName
void SetUserName(const Aws::String &value)
Definition: AwsIamAccessKeySessionContextSessionIssuer.h:234