AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteAccountAssignmentRequest.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 "DeleteAccountAssignment"; }
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 DeleteAccountAssignmentRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
53 inline DeleteAccountAssignmentRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
54 inline DeleteAccountAssignmentRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
56
58
61 inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
62 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
63 inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
64 inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
65 inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
67 inline DeleteAccountAssignmentRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
68 inline DeleteAccountAssignmentRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
70
72
79 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
80 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
81 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
82 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
83 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
84 inline DeleteAccountAssignmentRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
85 inline DeleteAccountAssignmentRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
86 inline DeleteAccountAssignmentRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
88
90
93 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
94 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
95 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
96 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
98 inline DeleteAccountAssignmentRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetTargetId() const{ return m_targetId; }
107 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
108 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
109 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
110 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
111 inline DeleteAccountAssignmentRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
112 inline DeleteAccountAssignmentRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
113 inline DeleteAccountAssignmentRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
115
117
120 inline const TargetType& GetTargetType() const{ return m_targetType; }
121 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
122 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
123 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
124 inline DeleteAccountAssignmentRequest& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
125 inline DeleteAccountAssignmentRequest& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_instanceArn;
130 bool m_instanceArnHasBeenSet = false;
131
132 Aws::String m_permissionSetArn;
133 bool m_permissionSetArnHasBeenSet = false;
134
135 Aws::String m_principalId;
136 bool m_principalIdHasBeenSet = false;
137
138 PrincipalType m_principalType;
139 bool m_principalTypeHasBeenSet = false;
140
141 Aws::String m_targetId;
142 bool m_targetIdHasBeenSet = false;
143
144 TargetType m_targetType;
145 bool m_targetTypeHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SSOAdmin
150} // namespace Aws
DeleteAccountAssignmentRequest & WithPrincipalId(const Aws::String &value)
DeleteAccountAssignmentRequest & WithTargetId(const Aws::String &value)
DeleteAccountAssignmentRequest & WithPrincipalType(const PrincipalType &value)
DeleteAccountAssignmentRequest & WithPrincipalType(PrincipalType &&value)
DeleteAccountAssignmentRequest & WithPermissionSetArn(const Aws::String &value)
DeleteAccountAssignmentRequest & WithInstanceArn(const char *value)
DeleteAccountAssignmentRequest & WithPrincipalId(Aws::String &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteAccountAssignmentRequest & WithTargetType(const TargetType &value)
DeleteAccountAssignmentRequest & WithInstanceArn(const Aws::String &value)
DeleteAccountAssignmentRequest & WithTargetId(const char *value)
DeleteAccountAssignmentRequest & WithTargetId(Aws::String &&value)
DeleteAccountAssignmentRequest & WithPrincipalId(const char *value)
DeleteAccountAssignmentRequest & WithTargetType(TargetType &&value)
DeleteAccountAssignmentRequest & WithPermissionSetArn(Aws::String &&value)
DeleteAccountAssignmentRequest & WithPermissionSetArn(const char *value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
DeleteAccountAssignmentRequest & WithInstanceArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String