AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumedRole.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 AssumedRole();
39 AWS_MACIE2_API AssumedRole(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 AssumedRole& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
54 inline AssumedRole& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
55 inline AssumedRole& 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 AssumedRole& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 inline AssumedRole& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 inline AssumedRole& 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 AssumedRole& WithArn(const Aws::String& value) { SetArn(value); return *this;}
84 inline AssumedRole& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
85 inline AssumedRole& 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 AssumedRole& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
99 inline AssumedRole& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
100 inline AssumedRole& 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 AssumedRole& WithSessionContext(const SessionContext& value) { SetSessionContext(value); return *this;}
113 inline AssumedRole& 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 SetAccountId(const Aws::String &value)
Definition AssumedRole.h:65
void SetArn(const Aws::String &value)
Definition AssumedRole.h:80
void SetSessionContext(const SessionContext &value)
AssumedRole & WithPrincipalId(const char *value)
const Aws::String & GetArn() const
Definition AssumedRole.h:78
AssumedRole & WithAccessKeyId(Aws::String &&value)
Definition AssumedRole.h:54
const Aws::String & GetAccountId() const
Definition AssumedRole.h:63
AssumedRole & WithAccountId(const char *value)
Definition AssumedRole.h:70
AssumedRole & WithArn(Aws::String &&value)
Definition AssumedRole.h:84
AssumedRole & WithAccessKeyId(const Aws::String &value)
Definition AssumedRole.h:53
void SetArn(Aws::String &&value)
Definition AssumedRole.h:81
void SetAccessKeyId(const char *value)
Definition AssumedRole.h:52
AWS_MACIE2_API AssumedRole(Aws::Utils::Json::JsonView jsonValue)
AssumedRole & WithAccountId(const Aws::String &value)
Definition AssumedRole.h:68
void SetPrincipalId(const char *value)
Definition AssumedRole.h:97
AWS_MACIE2_API AssumedRole & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AssumedRole & WithPrincipalId(const Aws::String &value)
Definition AssumedRole.h:98
void SetPrincipalId(const Aws::String &value)
Definition AssumedRole.h:95
const SessionContext & GetSessionContext() const
const Aws::String & GetPrincipalId() const
Definition AssumedRole.h:93
AssumedRole & WithAccessKeyId(const char *value)
Definition AssumedRole.h:55
const Aws::String & GetAccessKeyId() const
Definition AssumedRole.h:48
void SetAccountId(const char *value)
Definition AssumedRole.h:67
AssumedRole & WithSessionContext(SessionContext &&value)
AssumedRole & WithArn(const Aws::String &value)
Definition AssumedRole.h:83
void SetAccessKeyId(const Aws::String &value)
Definition AssumedRole.h:50
AssumedRole & WithSessionContext(const SessionContext &value)
void SetSessionContext(SessionContext &&value)
void SetPrincipalId(Aws::String &&value)
Definition AssumedRole.h:96
AssumedRole & WithPrincipalId(Aws::String &&value)
Definition AssumedRole.h:99
AssumedRole & WithAccountId(Aws::String &&value)
Definition AssumedRole.h:69
void SetAccountId(Aws::String &&value)
Definition AssumedRole.h:66
void SetAccessKeyId(Aws::String &&value)
Definition AssumedRole.h:51
void SetArn(const char *value)
Definition AssumedRole.h:82
AssumedRole & WithArn(const char *value)
Definition AssumedRole.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue