AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
AccountAssignmentForPrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
9#include <aws/sso-admin/model/PrincipalType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSOAdmin {
21namespace Model {
22
31 public:
32 AWS_SSOADMIN_API AccountAssignmentForPrincipal() = default;
35 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetPermissionSetArn() const { return m_permissionSetArn; }
61 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
62 template <typename PermissionSetArnT = Aws::String>
63 void SetPermissionSetArn(PermissionSetArnT&& value) {
64 m_permissionSetArnHasBeenSet = true;
65 m_permissionSetArn = std::forward<PermissionSetArnT>(value);
66 }
67 template <typename PermissionSetArnT = Aws::String>
69 SetPermissionSetArn(std::forward<PermissionSetArnT>(value));
70 return *this;
71 }
73
75
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>
87 SetPrincipalId(std::forward<PrincipalIdT>(value));
88 return *this;
89 }
91
93
96 inline PrincipalType GetPrincipalType() const { return m_principalType; }
97 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
98 inline void SetPrincipalType(PrincipalType value) {
99 m_principalTypeHasBeenSet = true;
100 m_principalType = value;
101 }
103 SetPrincipalType(value);
104 return *this;
105 }
107 private:
108 Aws::String m_accountId;
109
110 Aws::String m_permissionSetArn;
111
112 Aws::String m_principalId;
113
114 PrincipalType m_principalType{PrincipalType::NOT_SET};
115 bool m_accountIdHasBeenSet = false;
116 bool m_permissionSetArnHasBeenSet = false;
117 bool m_principalIdHasBeenSet = false;
118 bool m_principalTypeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SSOAdmin
123} // namespace Aws
AccountAssignmentForPrincipal & WithPermissionSetArn(PermissionSetArnT &&value)
AccountAssignmentForPrincipal & WithPrincipalId(PrincipalIdT &&value)
AccountAssignmentForPrincipal & WithPrincipalType(PrincipalType value)
AWS_SSOADMIN_API AccountAssignmentForPrincipal()=default
AccountAssignmentForPrincipal & WithAccountId(AccountIdT &&value)
AWS_SSOADMIN_API AccountAssignmentForPrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSOADMIN_API AccountAssignmentForPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue