AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccountAssignmentRequest.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/PrincipalType.h>
11#include <aws/sso-admin/model/TargetType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSOAdmin
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAccountAssignment"; }
33
34 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
48 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
49 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
50 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
51 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
52 inline CreateAccountAssignmentRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
53 inline CreateAccountAssignmentRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
54 inline CreateAccountAssignmentRequest& WithInstanceArn(const char* value) { SetInstanceArn(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 CreateAccountAssignmentRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
69 inline CreateAccountAssignmentRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
71
73
80 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
81 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
82 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
83 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
84 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
85 inline CreateAccountAssignmentRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
86 inline CreateAccountAssignmentRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
87 inline CreateAccountAssignmentRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
89
91
94 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
95 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
96 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
97 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
99 inline CreateAccountAssignmentRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
101
103
107 inline const Aws::String& GetTargetId() const{ return m_targetId; }
108 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
109 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
110 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
111 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
112 inline CreateAccountAssignmentRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
113 inline CreateAccountAssignmentRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
114 inline CreateAccountAssignmentRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
116
118
121 inline const TargetType& GetTargetType() const{ return m_targetType; }
122 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
123 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
124 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
125 inline CreateAccountAssignmentRequest& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
126 inline CreateAccountAssignmentRequest& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_instanceArn;
131 bool m_instanceArnHasBeenSet = false;
132
133 Aws::String m_permissionSetArn;
134 bool m_permissionSetArnHasBeenSet = false;
135
136 Aws::String m_principalId;
137 bool m_principalIdHasBeenSet = false;
138
139 PrincipalType m_principalType;
140 bool m_principalTypeHasBeenSet = false;
141
142 Aws::String m_targetId;
143 bool m_targetIdHasBeenSet = false;
144
145 TargetType m_targetType;
146 bool m_targetTypeHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SSOAdmin
151} // namespace Aws
CreateAccountAssignmentRequest & WithInstanceArn(Aws::String &&value)
CreateAccountAssignmentRequest & WithPrincipalId(Aws::String &&value)
CreateAccountAssignmentRequest & WithTargetId(Aws::String &&value)
CreateAccountAssignmentRequest & WithInstanceArn(const Aws::String &value)
CreateAccountAssignmentRequest & WithPrincipalId(const char *value)
CreateAccountAssignmentRequest & WithPrincipalId(const Aws::String &value)
CreateAccountAssignmentRequest & WithPermissionSetArn(Aws::String &&value)
CreateAccountAssignmentRequest & WithPrincipalType(const PrincipalType &value)
CreateAccountAssignmentRequest & WithPermissionSetArn(const Aws::String &value)
CreateAccountAssignmentRequest & WithTargetId(const char *value)
CreateAccountAssignmentRequest & WithInstanceArn(const char *value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccountAssignmentRequest & WithTargetType(const TargetType &value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
CreateAccountAssignmentRequest & WithPermissionSetArn(const char *value)
CreateAccountAssignmentRequest & WithTargetId(const Aws::String &value)
CreateAccountAssignmentRequest & WithPrincipalType(PrincipalType &&value)
CreateAccountAssignmentRequest & WithTargetType(TargetType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String