AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
SessionIssuer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
29 public:
30 AWS_MACIE2_API SessionIssuer() = default;
31 AWS_MACIE2_API SessionIssuer(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 SessionIssuer& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 SessionIssuer& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
79 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
80 template <typename PrincipalIdT = Aws::String>
81 void SetPrincipalId(PrincipalIdT&& value) {
82 m_principalIdHasBeenSet = true;
83 m_principalId = std::forward<PrincipalIdT>(value);
84 }
85 template <typename PrincipalIdT = Aws::String>
86 SessionIssuer& WithPrincipalId(PrincipalIdT&& value) {
87 SetPrincipalId(std::forward<PrincipalIdT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 template <typename TypeT = Aws::String>
100 void SetType(TypeT&& value) {
101 m_typeHasBeenSet = true;
102 m_type = std::forward<TypeT>(value);
103 }
104 template <typename TypeT = Aws::String>
105 SessionIssuer& WithType(TypeT&& value) {
106 SetType(std::forward<TypeT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetUserName() const { return m_userName; }
118 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
119 template <typename UserNameT = Aws::String>
120 void SetUserName(UserNameT&& value) {
121 m_userNameHasBeenSet = true;
122 m_userName = std::forward<UserNameT>(value);
123 }
124 template <typename UserNameT = Aws::String>
125 SessionIssuer& WithUserName(UserNameT&& value) {
126 SetUserName(std::forward<UserNameT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_accountId;
132
133 Aws::String m_arn;
134
135 Aws::String m_principalId;
136
137 Aws::String m_type;
138
139 Aws::String m_userName;
140 bool m_accountIdHasBeenSet = false;
141 bool m_arnHasBeenSet = false;
142 bool m_principalIdHasBeenSet = false;
143 bool m_typeHasBeenSet = false;
144 bool m_userNameHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Macie2
149} // namespace Aws
void SetPrincipalId(PrincipalIdT &&value)
const Aws::String & GetAccountId() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserName() const
SessionIssuer & WithUserName(UserNameT &&value)
void SetUserName(UserNameT &&value)
const Aws::String & GetType() const
void SetAccountId(AccountIdT &&value)
SessionIssuer & WithArn(ArnT &&value)
AWS_MACIE2_API SessionIssuer()=default
AWS_MACIE2_API SessionIssuer(Aws::Utils::Json::JsonView jsonValue)
SessionIssuer & WithAccountId(AccountIdT &&value)
const Aws::String & GetPrincipalId() const
const Aws::String & GetArn() const
SessionIssuer & WithPrincipalId(PrincipalIdT &&value)
AWS_MACIE2_API SessionIssuer & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionIssuer & WithType(TypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue