AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountAssignmentForPrincipal.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sso-admin/model/PrincipalType.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 SSOAdmin
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SSOADMIN_API AccountAssignmentForPrincipal() = default;
40 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 AccountAssignmentForPrincipal& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::forward<PermissionSetArnT>(value); }
64 template<typename PermissionSetArnT = Aws::String>
65 AccountAssignmentForPrincipal& WithPermissionSetArn(PermissionSetArnT&& value) { SetPermissionSetArn(std::forward<PermissionSetArnT>(value)); return *this;}
67
69
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 AccountAssignmentForPrincipal& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
79
81
84 inline PrincipalType GetPrincipalType() const { return m_principalType; }
85 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
86 inline void SetPrincipalType(PrincipalType value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
89 private:
90
91 Aws::String m_accountId;
92 bool m_accountIdHasBeenSet = false;
93
94 Aws::String m_permissionSetArn;
95 bool m_permissionSetArnHasBeenSet = false;
96
97 Aws::String m_principalId;
98 bool m_principalIdHasBeenSet = false;
99
100 PrincipalType m_principalType{PrincipalType::NOT_SET};
101 bool m_principalTypeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SSOAdmin
106} // 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