AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/IdentityCenterPrincipal.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccountAccess {
20namespace Model {
21
28class Principal {
29 public:
30 AWS_ACCOUNTACCESS_API Principal() = default;
31 AWS_ACCOUNTACCESS_API Principal(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCOUNTACCESS_API Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const IdentityCenterPrincipal& GetIdentityCenter() const { return m_identityCenter; }
40 inline bool IdentityCenterHasBeenSet() const { return m_identityCenterHasBeenSet; }
41 template <typename IdentityCenterT = IdentityCenterPrincipal>
42 void SetIdentityCenter(IdentityCenterT&& value) {
43 m_identityCenterHasBeenSet = true;
44 m_identityCenter = std::forward<IdentityCenterT>(value);
45 }
46 template <typename IdentityCenterT = IdentityCenterPrincipal>
47 Principal& WithIdentityCenter(IdentityCenterT&& value) {
48 SetIdentityCenter(std::forward<IdentityCenterT>(value));
49 return *this;
50 }
52 private:
53 IdentityCenterPrincipal m_identityCenter;
54 bool m_identityCenterHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace AccountAccess
59} // namespace Aws
AWS_ACCOUNTACCESS_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdentityCenter(IdentityCenterT &&value)
Definition Principal.h:42
AWS_ACCOUNTACCESS_API Principal()=default
AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCOUNTACCESS_API Principal(Aws::Utils::Json::JsonView jsonValue)
const IdentityCenterPrincipal & GetIdentityCenter() const
Definition Principal.h:39
Principal & WithIdentityCenter(IdentityCenterT &&value)
Definition Principal.h:47
Aws::Utils::Json::JsonValue JsonValue