AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountAssignment.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
36 {
37 public:
38 AWS_SSOADMIN_API AccountAssignment();
39 AWS_SSOADMIN_API AccountAssignment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline AccountAssignment& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline AccountAssignment& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline AccountAssignment& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
65 inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
66 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
67 inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
68 inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
69 inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
70 inline AccountAssignment& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;}
71 inline AccountAssignment& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
72 inline AccountAssignment& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
74
76
83 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
84 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
85 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
86 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
87 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
88 inline AccountAssignment& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
89 inline AccountAssignment& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
90 inline AccountAssignment& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
92
94
97 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
98 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
99 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
100 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
101 inline AccountAssignment& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
102 inline AccountAssignment& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
104 private:
105
106 Aws::String m_accountId;
107 bool m_accountIdHasBeenSet = false;
108
109 Aws::String m_permissionSetArn;
110 bool m_permissionSetArnHasBeenSet = false;
111
112 Aws::String m_principalId;
113 bool m_principalIdHasBeenSet = false;
114
115 PrincipalType m_principalType;
116 bool m_principalTypeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SSOAdmin
121} // namespace Aws
AccountAssignment & WithPermissionSetArn(Aws::String &&value)
AccountAssignment & WithAccountId(Aws::String &&value)
AccountAssignment & WithAccountId(const Aws::String &value)
AccountAssignment & WithPrincipalId(const Aws::String &value)
void SetPermissionSetArn(const Aws::String &value)
AccountAssignment & WithAccountId(const char *value)
AccountAssignment & WithPrincipalType(PrincipalType &&value)
AccountAssignment & WithPrincipalType(const PrincipalType &value)
const Aws::String & GetPrincipalId() const
AWS_SSOADMIN_API AccountAssignment & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountAssignment & WithPrincipalId(Aws::String &&value)
AWS_SSOADMIN_API AccountAssignment(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(const Aws::String &value)
const Aws::String & GetAccountId() const
AccountAssignment & WithPermissionSetArn(const char *value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAssignment & WithPrincipalId(const char *value)
void SetPermissionSetArn(Aws::String &&value)
void SetPrincipalType(PrincipalType &&value)
void SetPrincipalType(const PrincipalType &value)
void SetPrincipalId(const Aws::String &value)
const Aws::String & GetPermissionSetArn() const
AccountAssignment & WithPermissionSetArn(const Aws::String &value)
const PrincipalType & GetPrincipalType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue