AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline AccountAssignmentForPrincipal& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline AccountAssignmentForPrincipal& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline AccountAssignmentForPrincipal& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
63 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
64 inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
65 inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
66 inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
68 inline AccountAssignmentForPrincipal& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
69 inline AccountAssignmentForPrincipal& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
71
73
76 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
77 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
78 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
79 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
80 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
81 inline AccountAssignmentForPrincipal& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
82 inline AccountAssignmentForPrincipal& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
83 inline AccountAssignmentForPrincipal& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
85
87
90 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
91 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
92 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
93 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
95 inline AccountAssignmentForPrincipal& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_accountId;
100 bool m_accountIdHasBeenSet = false;
101
102 Aws::String m_permissionSetArn;
103 bool m_permissionSetArnHasBeenSet = false;
104
105 Aws::String m_principalId;
106 bool m_principalIdHasBeenSet = false;
107
108 PrincipalType m_principalType;
109 bool m_principalTypeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SSOAdmin
114} // namespace Aws
AccountAssignmentForPrincipal & WithAccountId(Aws::String &&value)
AccountAssignmentForPrincipal & WithPrincipalId(const char *value)
AccountAssignmentForPrincipal & WithPermissionSetArn(const Aws::String &value)
AccountAssignmentForPrincipal & WithAccountId(const char *value)
AccountAssignmentForPrincipal & WithPrincipalType(const PrincipalType &value)
AccountAssignmentForPrincipal & WithPrincipalId(Aws::String &&value)
AWS_SSOADMIN_API AccountAssignmentForPrincipal(Aws::Utils::Json::JsonView jsonValue)
AccountAssignmentForPrincipal & WithPermissionSetArn(Aws::String &&value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAssignmentForPrincipal & WithPermissionSetArn(const char *value)
AccountAssignmentForPrincipal & WithAccountId(const Aws::String &value)
AccountAssignmentForPrincipal & WithPrincipalId(const Aws::String &value)
AWS_SSOADMIN_API AccountAssignmentForPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountAssignmentForPrincipal & WithPrincipalType(PrincipalType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue