AWS SDK for C++  1.9.159
AWS SDK for C++
DisassociateResourceSharePermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RAM
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 "DisassociateResourceSharePermission"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
41  inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
42 
49  inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
50 
57  inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
58 
65  inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
66 
73  inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
74 
81  inline DisassociateResourceSharePermissionRequest& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
82 
89  inline DisassociateResourceSharePermissionRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
90 
97  inline DisassociateResourceSharePermissionRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
98 
99 
106  inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
107 
114  inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
115 
122  inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
123 
130  inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
131 
138  inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
139 
146  inline DisassociateResourceSharePermissionRequest& WithPermissionArn(const Aws::String& value) { SetPermissionArn(value); return *this;}
147 
154  inline DisassociateResourceSharePermissionRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
155 
162  inline DisassociateResourceSharePermissionRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
163 
164 
175  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
176 
187  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
188 
199  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
200 
211  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
212 
223  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
224 
235  inline DisassociateResourceSharePermissionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
236 
247  inline DisassociateResourceSharePermissionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
248 
259  inline DisassociateResourceSharePermissionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
260 
261  private:
262 
263  Aws::String m_resourceShareArn;
264  bool m_resourceShareArnHasBeenSet;
265 
266  Aws::String m_permissionArn;
267  bool m_permissionArnHasBeenSet;
268 
269  Aws::String m_clientToken;
270  bool m_clientTokenHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace RAM
275 } // namespace Aws
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetResourceShareArn
void SetResourceShareArn(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:73
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetPermissionArn
void SetPermissionArn(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:138
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithResourceShareArn
DisassociateResourceSharePermissionRequest & WithResourceShareArn(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:97
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetResourceShareArn
void SetResourceShareArn(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:57
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: DisassociateResourceSharePermissionRequest.h:175
RAMRequest.h
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:199
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithPermissionArn
DisassociateResourceSharePermissionRequest & WithPermissionArn(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:146
Aws::RAM::Model::DisassociateResourceSharePermissionRequest
Definition: DisassociateResourceSharePermissionRequest.h:22
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithClientToken
DisassociateResourceSharePermissionRequest & WithClientToken(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:247
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithPermissionArn
DisassociateResourceSharePermissionRequest & WithPermissionArn(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:162
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::PermissionArnHasBeenSet
bool PermissionArnHasBeenSet() const
Definition: DisassociateResourceSharePermissionRequest.h:114
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetClientToken
void SetClientToken(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:223
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::GetResourceShareArn
const Aws::String & GetResourceShareArn() const
Definition: DisassociateResourceSharePermissionRequest.h:41
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithResourceShareArn
DisassociateResourceSharePermissionRequest & WithResourceShareArn(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:89
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetPermissionArn
void SetPermissionArn(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:130
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetResourceShareArn
void SetResourceShareArn(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:65
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithPermissionArn
DisassociateResourceSharePermissionRequest & WithPermissionArn(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:154
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::GetPermissionArn
const Aws::String & GetPermissionArn() const
Definition: DisassociateResourceSharePermissionRequest.h:106
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithResourceShareArn
DisassociateResourceSharePermissionRequest & WithResourceShareArn(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:81
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: DisassociateResourceSharePermissionRequest.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: DisassociateResourceSharePermissionRequest.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateResourceSharePermissionRequest.h:30
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithClientToken
DisassociateResourceSharePermissionRequest & WithClientToken(const char *value)
Definition: DisassociateResourceSharePermissionRequest.h:259
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::SetPermissionArn
void SetPermissionArn(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:122
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::ResourceShareArnHasBeenSet
bool ResourceShareArnHasBeenSet() const
Definition: DisassociateResourceSharePermissionRequest.h:49
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::DisassociateResourceSharePermissionRequest
DisassociateResourceSharePermissionRequest()
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17
Aws::RAM::Model::DisassociateResourceSharePermissionRequest::WithClientToken
DisassociateResourceSharePermissionRequest & WithClientToken(const Aws::String &value)
Definition: DisassociateResourceSharePermissionRequest.h:235