AWS SDK for C++  1.9.40
AWS SDK for C++
AttachManagedPolicyToPermissionSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SSOAdmin
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AttachManagedPolicyToPermissionSet"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
44 
51  inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
52 
59  inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
60 
67  inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
68 
75  inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
76 
83  inline AttachManagedPolicyToPermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
84 
91  inline AttachManagedPolicyToPermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
92 
99  inline AttachManagedPolicyToPermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
100 
101 
106  inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
107 
112  inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
113 
118  inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
119 
124  inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
125 
130  inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
131 
136  inline AttachManagedPolicyToPermissionSetRequest& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;}
137 
142  inline AttachManagedPolicyToPermissionSetRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
143 
148  inline AttachManagedPolicyToPermissionSetRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
149 
150 
154  inline const Aws::String& GetManagedPolicyArn() const{ return m_managedPolicyArn; }
155 
159  inline bool ManagedPolicyArnHasBeenSet() const { return m_managedPolicyArnHasBeenSet; }
160 
164  inline void SetManagedPolicyArn(const Aws::String& value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn = value; }
165 
169  inline void SetManagedPolicyArn(Aws::String&& value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn = std::move(value); }
170 
174  inline void SetManagedPolicyArn(const char* value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn.assign(value); }
175 
179  inline AttachManagedPolicyToPermissionSetRequest& WithManagedPolicyArn(const Aws::String& value) { SetManagedPolicyArn(value); return *this;}
180 
184  inline AttachManagedPolicyToPermissionSetRequest& WithManagedPolicyArn(Aws::String&& value) { SetManagedPolicyArn(std::move(value)); return *this;}
185 
189  inline AttachManagedPolicyToPermissionSetRequest& WithManagedPolicyArn(const char* value) { SetManagedPolicyArn(value); return *this;}
190 
191  private:
192 
193  Aws::String m_instanceArn;
194  bool m_instanceArnHasBeenSet;
195 
196  Aws::String m_permissionSetArn;
197  bool m_permissionSetArnHasBeenSet;
198 
199  Aws::String m_managedPolicyArn;
200  bool m_managedPolicyArnHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace SSOAdmin
205 } // namespace Aws
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithInstanceArn
AttachManagedPolicyToPermissionSetRequest & WithInstanceArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:83
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::GetManagedPolicyArn
const Aws::String & GetManagedPolicyArn() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:154
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::GetInstanceArn
const Aws::String & GetInstanceArn() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:43
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithPermissionSetArn
AttachManagedPolicyToPermissionSetRequest & WithPermissionSetArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:148
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::PermissionSetArnHasBeenSet
bool PermissionSetArnHasBeenSet() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:112
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetInstanceArn
void SetInstanceArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:75
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::AttachManagedPolicyToPermissionSetRequest
AttachManagedPolicyToPermissionSetRequest()
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetManagedPolicyArn
void SetManagedPolicyArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:169
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithPermissionSetArn
AttachManagedPolicyToPermissionSetRequest & WithPermissionSetArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:136
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithManagedPolicyArn
AttachManagedPolicyToPermissionSetRequest & WithManagedPolicyArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:189
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetInstanceArn
void SetInstanceArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:67
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetPermissionSetArn
void SetPermissionSetArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:130
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetPermissionSetArn
void SetPermissionSetArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:118
Aws::SSOAdmin::SSOAdminRequest
Definition: SSOAdminRequest.h:17
AWSString.h
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithManagedPolicyArn
AttachManagedPolicyToPermissionSetRequest & WithManagedPolicyArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:179
SSOAdminRequest.h
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest
Definition: AttachManagedPolicyToPermissionSetRequest.h:22
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetPermissionSetArn
void SetPermissionSetArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:124
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::GetPermissionSetArn
const Aws::String & GetPermissionSetArn() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:106
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithManagedPolicyArn
AttachManagedPolicyToPermissionSetRequest & WithManagedPolicyArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:184
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::ManagedPolicyArnHasBeenSet
bool ManagedPolicyArnHasBeenSet() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:159
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithPermissionSetArn
AttachManagedPolicyToPermissionSetRequest & WithPermissionSetArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:142
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetManagedPolicyArn
void SetManagedPolicyArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:174
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithInstanceArn
AttachManagedPolicyToPermissionSetRequest & WithInstanceArn(Aws::String &&value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:91
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetInstanceArn
void SetInstanceArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachManagedPolicyToPermissionSetRequest.h:30
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::WithInstanceArn
AttachManagedPolicyToPermissionSetRequest & WithInstanceArn(const char *value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:99
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::SetManagedPolicyArn
void SetManagedPolicyArn(const Aws::String &value)
Definition: AttachManagedPolicyToPermissionSetRequest.h:164
Aws::SSOAdmin::Model::AttachManagedPolicyToPermissionSetRequest::InstanceArnHasBeenSet
bool InstanceArnHasBeenSet() const
Definition: AttachManagedPolicyToPermissionSetRequest.h:51