AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FederatedUser.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/SessionContext.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_MACIE2_API FederatedUser();
39 AWS_MACIE2_API FederatedUser(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
49 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
50 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
51 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
52 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
53 inline FederatedUser& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
54 inline FederatedUser& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
55 inline FederatedUser& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
57
59
63 inline const Aws::String& GetAccountId() const{ return m_accountId; }
64 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
65 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
67 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
68 inline FederatedUser& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 inline FederatedUser& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 inline FederatedUser& WithAccountId(const char* value) { SetAccountId(value); return *this;}
72
74
78 inline const Aws::String& GetArn() const{ return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
81 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
82 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
83 inline FederatedUser& WithArn(const Aws::String& value) { SetArn(value); return *this;}
84 inline FederatedUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
85 inline FederatedUser& WithArn(const char* value) { SetArn(value); return *this;}
87
89
93 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
94 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
95 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
96 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
97 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
98 inline FederatedUser& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
99 inline FederatedUser& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
100 inline FederatedUser& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
102
104
108 inline const SessionContext& GetSessionContext() const{ return m_sessionContext; }
109 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
110 inline void SetSessionContext(const SessionContext& value) { m_sessionContextHasBeenSet = true; m_sessionContext = value; }
111 inline void SetSessionContext(SessionContext&& value) { m_sessionContextHasBeenSet = true; m_sessionContext = std::move(value); }
112 inline FederatedUser& WithSessionContext(const SessionContext& value) { SetSessionContext(value); return *this;}
113 inline FederatedUser& WithSessionContext(SessionContext&& value) { SetSessionContext(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_accessKeyId;
118 bool m_accessKeyIdHasBeenSet = false;
119
120 Aws::String m_accountId;
121 bool m_accountIdHasBeenSet = false;
122
123 Aws::String m_arn;
124 bool m_arnHasBeenSet = false;
125
126 Aws::String m_principalId;
127 bool m_principalIdHasBeenSet = false;
128
129 SessionContext m_sessionContext;
130 bool m_sessionContextHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Macie2
135} // namespace Aws
void SetArn(Aws::String &&value)
void SetPrincipalId(const Aws::String &value)
FederatedUser & WithPrincipalId(const char *value)
FederatedUser & WithPrincipalId(const Aws::String &value)
FederatedUser & WithAccessKeyId(const char *value)
const Aws::String & GetAccessKeyId() const
const Aws::String & GetAccountId() const
const SessionContext & GetSessionContext() const
FederatedUser & WithSessionContext(const SessionContext &value)
void SetSessionContext(SessionContext &&value)
FederatedUser & WithAccountId(const char *value)
FederatedUser & WithPrincipalId(Aws::String &&value)
FederatedUser & WithArn(Aws::String &&value)
FederatedUser & WithAccountId(const Aws::String &value)
void SetArn(const char *value)
void SetAccountId(Aws::String &&value)
void SetAccessKeyId(const Aws::String &value)
FederatedUser & WithSessionContext(SessionContext &&value)
FederatedUser & WithAccessKeyId(Aws::String &&value)
void SetAccessKeyId(Aws::String &&value)
void SetPrincipalId(Aws::String &&value)
const Aws::String & GetArn() const
void SetAccountId(const Aws::String &value)
void SetAccountId(const char *value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API FederatedUser(Aws::Utils::Json::JsonView jsonValue)
FederatedUser & WithArn(const char *value)
FederatedUser & WithAccessKeyId(const Aws::String &value)
FederatedUser & WithArn(const Aws::String &value)
FederatedUser & WithAccountId(Aws::String &&value)
AWS_MACIE2_API FederatedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(const char *value)
const Aws::String & GetPrincipalId() const
void SetArn(const Aws::String &value)
void SetAccessKeyId(const char *value)
void SetSessionContext(const SessionContext &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue