AWS SDK for C++  1.9.104
AWS SDK for C++
CreatePermissionSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSOAdmin
17 {
18 namespace 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 "CreatePermissionSet"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline CreatePermissionSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline CreatePermissionSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline CreatePermissionSetRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline CreatePermissionSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline CreatePermissionSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline CreatePermissionSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
128  inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
129 
137  inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
138 
146  inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
147 
155  inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
156 
164  inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
165 
173  inline CreatePermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
174 
182  inline CreatePermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
183 
191  inline CreatePermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
192 
193 
198  inline const Aws::String& GetSessionDuration() const{ return m_sessionDuration; }
199 
204  inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
205 
210  inline void SetSessionDuration(const Aws::String& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = value; }
211 
216  inline void SetSessionDuration(Aws::String&& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = std::move(value); }
217 
222  inline void SetSessionDuration(const char* value) { m_sessionDurationHasBeenSet = true; m_sessionDuration.assign(value); }
223 
228  inline CreatePermissionSetRequest& WithSessionDuration(const Aws::String& value) { SetSessionDuration(value); return *this;}
229 
234  inline CreatePermissionSetRequest& WithSessionDuration(Aws::String&& value) { SetSessionDuration(std::move(value)); return *this;}
235 
240  inline CreatePermissionSetRequest& WithSessionDuration(const char* value) { SetSessionDuration(value); return *this;}
241 
242 
247  inline const Aws::String& GetRelayState() const{ return m_relayState; }
248 
253  inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
254 
259  inline void SetRelayState(const Aws::String& value) { m_relayStateHasBeenSet = true; m_relayState = value; }
260 
265  inline void SetRelayState(Aws::String&& value) { m_relayStateHasBeenSet = true; m_relayState = std::move(value); }
266 
271  inline void SetRelayState(const char* value) { m_relayStateHasBeenSet = true; m_relayState.assign(value); }
272 
277  inline CreatePermissionSetRequest& WithRelayState(const Aws::String& value) { SetRelayState(value); return *this;}
278 
283  inline CreatePermissionSetRequest& WithRelayState(Aws::String&& value) { SetRelayState(std::move(value)); return *this;}
284 
289  inline CreatePermissionSetRequest& WithRelayState(const char* value) { SetRelayState(value); return *this;}
290 
291 
295  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
296 
300  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
301 
305  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
306 
310  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
311 
315  inline CreatePermissionSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
316 
320  inline CreatePermissionSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
321 
325  inline CreatePermissionSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
326 
330  inline CreatePermissionSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
331 
332  private:
333 
334  Aws::String m_name;
335  bool m_nameHasBeenSet;
336 
337  Aws::String m_description;
338  bool m_descriptionHasBeenSet;
339 
340  Aws::String m_instanceArn;
341  bool m_instanceArnHasBeenSet;
342 
343  Aws::String m_sessionDuration;
344  bool m_sessionDurationHasBeenSet;
345 
346  Aws::String m_relayState;
347  bool m_relayStateHasBeenSet;
348 
349  Aws::Vector<Tag> m_tags;
350  bool m_tagsHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace SSOAdmin
355 } // namespace Aws
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetInstanceArn
void SetInstanceArn(const char *value)
Definition: CreatePermissionSetRequest.h:164
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:98
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:57
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePermissionSetRequest.h:32
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetInstanceArn
const Aws::String & GetInstanceArn() const
Definition: CreatePermissionSetRequest.h:128
Aws::SSOAdmin::Model::CreatePermissionSetRequest::RelayStateHasBeenSet
bool RelayStateHasBeenSet() const
Definition: CreatePermissionSetRequest.h:253
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithRelayState
CreatePermissionSetRequest & WithRelayState(const char *value)
Definition: CreatePermissionSetRequest.h:289
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithDescription
CreatePermissionSetRequest & WithDescription(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:113
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePermissionSetRequest.h:83
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetSessionDuration
void SetSessionDuration(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:216
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithName
CreatePermissionSetRequest & WithName(const char *value)
Definition: CreatePermissionSetRequest.h:77
Aws::SSOAdmin::Model::CreatePermissionSetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePermissionSetRequest.h:88
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithRelayState
CreatePermissionSetRequest & WithRelayState(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:277
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetSessionDuration
void SetSessionDuration(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:210
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreatePermissionSetRequest.h:295
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetRelayState
const Aws::String & GetRelayState() const
Definition: CreatePermissionSetRequest.h:247
Aws::SSOAdmin::Model::CreatePermissionSetRequest::AddTags
CreatePermissionSetRequest & AddTags(const Tag &value)
Definition: CreatePermissionSetRequest.h:325
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithTags
CreatePermissionSetRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreatePermissionSetRequest.h:315
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetSessionDuration
void SetSessionDuration(const char *value)
Definition: CreatePermissionSetRequest.h:222
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::CreatePermissionSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePermissionSetRequest.h:47
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithName
CreatePermissionSetRequest & WithName(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:72
AWSVector.h
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreatePermissionSetRequest.h:310
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithInstanceArn
CreatePermissionSetRequest & WithInstanceArn(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:182
Aws::SSOAdmin::Model::CreatePermissionSetRequest::CreatePermissionSetRequest
CreatePermissionSetRequest()
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetName
void SetName(const char *value)
Definition: CreatePermissionSetRequest.h:62
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetSessionDuration
const Aws::String & GetSessionDuration() const
Definition: CreatePermissionSetRequest.h:198
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithSessionDuration
CreatePermissionSetRequest & WithSessionDuration(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:228
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SessionDurationHasBeenSet
bool SessionDurationHasBeenSet() const
Definition: CreatePermissionSetRequest.h:204
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetInstanceArn
void SetInstanceArn(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:146
Tag.h
Aws::SSOAdmin::SSOAdminRequest
Definition: SSOAdminRequest.h:17
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetRelayState
void SetRelayState(const char *value)
Definition: CreatePermissionSetRequest.h:271
Aws::SSOAdmin::Model::CreatePermissionSetRequest::InstanceArnHasBeenSet
bool InstanceArnHasBeenSet() const
Definition: CreatePermissionSetRequest.h:137
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithDescription
CreatePermissionSetRequest & WithDescription(const char *value)
Definition: CreatePermissionSetRequest.h:118
AWSString.h
Aws::SSOAdmin::Model::Tag
Definition: Tag.h:35
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreatePermissionSetRequest.h:305
SSOAdminRequest.h
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetRelayState
void SetRelayState(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:265
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetInstanceArn
void SetInstanceArn(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:155
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithDescription
CreatePermissionSetRequest & WithDescription(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:108
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:93
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetName
const Aws::String & GetName() const
Definition: CreatePermissionSetRequest.h:42
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithTags
CreatePermissionSetRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreatePermissionSetRequest.h:320
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePermissionSetRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithInstanceArn
CreatePermissionSetRequest & WithInstanceArn(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:173
Aws::SSOAdmin::Model::CreatePermissionSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePermissionSetRequest.h:300
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithName
CreatePermissionSetRequest & WithName(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:67
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithSessionDuration
CreatePermissionSetRequest & WithSessionDuration(const char *value)
Definition: CreatePermissionSetRequest.h:240
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetRelayState
void SetRelayState(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:259
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithSessionDuration
CreatePermissionSetRequest & WithSessionDuration(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:234
Aws::SSOAdmin::Model::CreatePermissionSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePermissionSetRequest.h:52
Aws::SSOAdmin::Model::CreatePermissionSetRequest::AddTags
CreatePermissionSetRequest & AddTags(Tag &&value)
Definition: CreatePermissionSetRequest.h:330
Aws::SSOAdmin::Model::CreatePermissionSetRequest
Definition: CreatePermissionSetRequest.h:24
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithInstanceArn
CreatePermissionSetRequest & WithInstanceArn(const char *value)
Definition: CreatePermissionSetRequest.h:191
Aws::SSOAdmin::Model::CreatePermissionSetRequest::WithRelayState
CreatePermissionSetRequest & WithRelayState(Aws::String &&value)
Definition: CreatePermissionSetRequest.h:283
Aws::SSOAdmin::Model::CreatePermissionSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override