AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SessionIssuer.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Macie2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACIE2_API SessionIssuer() = default;
36 AWS_MACIE2_API SessionIssuer(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 SessionIssuer& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 SessionIssuer& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
72 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
73 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
74 template<typename PrincipalIdT = Aws::String>
75 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
76 template<typename PrincipalIdT = Aws::String>
77 SessionIssuer& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
79
81
85 inline const Aws::String& GetType() const { return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 template<typename TypeT = Aws::String>
88 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
89 template<typename TypeT = Aws::String>
90 SessionIssuer& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
92
94
99 inline const Aws::String& GetUserName() const { return m_userName; }
100 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
101 template<typename UserNameT = Aws::String>
102 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
103 template<typename UserNameT = Aws::String>
104 SessionIssuer& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
106 private:
107
108 Aws::String m_accountId;
109 bool m_accountIdHasBeenSet = false;
110
111 Aws::String m_arn;
112 bool m_arnHasBeenSet = false;
113
114 Aws::String m_principalId;
115 bool m_principalIdHasBeenSet = false;
116
117 Aws::String m_type;
118 bool m_typeHasBeenSet = false;
119
120 Aws::String m_userName;
121 bool m_userNameHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Macie2
126} // 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