AWS SDK for C++  1.9.123
AWS SDK for C++
ModifySelfservicePermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifySelfservicePermissions"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
42 
46  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 
51  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
52 
56  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
57 
61  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
62 
66  inline ModifySelfservicePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
67 
71  inline ModifySelfservicePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
72 
76  inline ModifySelfservicePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77 
78 
82  inline const SelfservicePermissions& GetSelfservicePermissions() const{ return m_selfservicePermissions; }
83 
87  inline bool SelfservicePermissionsHasBeenSet() const { return m_selfservicePermissionsHasBeenSet; }
88 
92  inline void SetSelfservicePermissions(const SelfservicePermissions& value) { m_selfservicePermissionsHasBeenSet = true; m_selfservicePermissions = value; }
93 
97  inline void SetSelfservicePermissions(SelfservicePermissions&& value) { m_selfservicePermissionsHasBeenSet = true; m_selfservicePermissions = std::move(value); }
98 
102  inline ModifySelfservicePermissionsRequest& WithSelfservicePermissions(const SelfservicePermissions& value) { SetSelfservicePermissions(value); return *this;}
103 
107  inline ModifySelfservicePermissionsRequest& WithSelfservicePermissions(SelfservicePermissions&& value) { SetSelfservicePermissions(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_resourceId;
112  bool m_resourceIdHasBeenSet;
113 
114  SelfservicePermissions m_selfservicePermissions;
115  bool m_selfservicePermissionsHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace WorkSpaces
120 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::WithResourceId
ModifySelfservicePermissionsRequest & WithResourceId(const char *value)
Definition: ModifySelfservicePermissionsRequest.h:76
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ModifySelfservicePermissionsRequest.h:56
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest
Definition: ModifySelfservicePermissionsRequest.h:23
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::WithSelfservicePermissions
ModifySelfservicePermissionsRequest & WithSelfservicePermissions(SelfservicePermissions &&value)
Definition: ModifySelfservicePermissionsRequest.h:107
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::ModifySelfservicePermissionsRequest
ModifySelfservicePermissionsRequest()
SelfservicePermissions.h
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::WithResourceId
ModifySelfservicePermissionsRequest & WithResourceId(Aws::String &&value)
Definition: ModifySelfservicePermissionsRequest.h:71
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: ModifySelfservicePermissionsRequest.h:41
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ModifySelfservicePermissionsRequest.h:46
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: ModifySelfservicePermissionsRequest.h:61
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SelfservicePermissionsHasBeenSet
bool SelfservicePermissionsHasBeenSet() const
Definition: ModifySelfservicePermissionsRequest.h:87
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SetSelfservicePermissions
void SetSelfservicePermissions(SelfservicePermissions &&value)
Definition: ModifySelfservicePermissionsRequest.h:97
AWSString.h
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifySelfservicePermissionsRequest.h:31
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ModifySelfservicePermissionsRequest.h:51
Aws::WorkSpaces::Model::SelfservicePermissions
Definition: SelfservicePermissions.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::WithSelfservicePermissions
ModifySelfservicePermissionsRequest & WithSelfservicePermissions(const SelfservicePermissions &value)
Definition: ModifySelfservicePermissionsRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::SetSelfservicePermissions
void SetSelfservicePermissions(const SelfservicePermissions &value)
Definition: ModifySelfservicePermissionsRequest.h:92
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::WithResourceId
ModifySelfservicePermissionsRequest & WithResourceId(const Aws::String &value)
Definition: ModifySelfservicePermissionsRequest.h:66
Aws::WorkSpaces::Model::ModifySelfservicePermissionsRequest::GetSelfservicePermissions
const SelfservicePermissions & GetSelfservicePermissions() const
Definition: ModifySelfservicePermissionsRequest.h:82