AWS SDK for C++  1.9.129
AWS SDK for C++
RemoveResourcePermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace WorkDocs
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "RemoveResourcePermission"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
42 
43 
48  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
49 
54  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
55 
60  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
61 
66  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
67 
72  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
73 
78  inline RemoveResourcePermissionRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
79 
84  inline RemoveResourcePermissionRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
85 
90  inline RemoveResourcePermissionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
91 
92 
96  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
97 
101  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
102 
106  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
107 
111  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
112 
116  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
117 
121  inline RemoveResourcePermissionRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
122 
126  inline RemoveResourcePermissionRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
127 
131  inline RemoveResourcePermissionRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
132 
133 
137  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
138 
142  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
143 
147  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
148 
152  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
153 
157  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
158 
162  inline RemoveResourcePermissionRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
163 
167  inline RemoveResourcePermissionRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
168 
172  inline RemoveResourcePermissionRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
173 
174 
178  inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
179 
183  inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
184 
188  inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
189 
193  inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
194 
198  inline RemoveResourcePermissionRequest& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
199 
203  inline RemoveResourcePermissionRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
204 
205  private:
206 
207  Aws::String m_authenticationToken;
208  bool m_authenticationTokenHasBeenSet;
209 
210  Aws::String m_resourceId;
211  bool m_resourceIdHasBeenSet;
212 
213  Aws::String m_principalId;
214  bool m_principalIdHasBeenSet;
215 
216  PrincipalType m_principalType;
217  bool m_principalTypeHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace WorkDocs
222 } // namespace Aws
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithAuthenticationToken
RemoveResourcePermissionRequest & WithAuthenticationToken(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:78
Aws::Http::URI
Definition: URI.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: RemoveResourcePermissionRequest.h:54
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: RemoveResourcePermissionRequest.h:96
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithPrincipalType
RemoveResourcePermissionRequest & WithPrincipalType(PrincipalType &&value)
Definition: RemoveResourcePermissionRequest.h:203
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:66
Aws::WorkDocs::Model::PrincipalType
PrincipalType
Definition: PrincipalType.h:17
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:60
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithPrincipalId
RemoveResourcePermissionRequest & WithPrincipalId(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:162
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::PrincipalTypeHasBeenSet
bool PrincipalTypeHasBeenSet() const
Definition: RemoveResourcePermissionRequest.h:183
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: RemoveResourcePermissionRequest.h:137
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: RemoveResourcePermissionRequest.h:157
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:106
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithAuthenticationToken
RemoveResourcePermissionRequest & WithAuthenticationToken(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:84
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:152
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:111
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: RemoveResourcePermissionRequest.h:142
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetPrincipalType
const PrincipalType & GetPrincipalType() const
Definition: RemoveResourcePermissionRequest.h:178
Aws::WorkDocs::Model::RemoveResourcePermissionRequest
Definition: RemoveResourcePermissionRequest.h:27
WorkDocs_EXPORTS.h
AWSString.h
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithResourceId
RemoveResourcePermissionRequest & WithResourceId(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:126
PrincipalType.h
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveResourcePermissionRequest.h:35
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithPrincipalType
RemoveResourcePermissionRequest & WithPrincipalType(const PrincipalType &value)
Definition: RemoveResourcePermissionRequest.h:198
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithPrincipalId
RemoveResourcePermissionRequest & WithPrincipalId(const char *value)
Definition: RemoveResourcePermissionRequest.h:172
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetPrincipalType
void SetPrincipalType(PrincipalType &&value)
Definition: RemoveResourcePermissionRequest.h:193
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetPrincipalType
void SetPrincipalType(const PrincipalType &value)
Definition: RemoveResourcePermissionRequest.h:188
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:147
WorkDocsRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: RemoveResourcePermissionRequest.h:101
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithResourceId
RemoveResourcePermissionRequest & WithResourceId(const char *value)
Definition: RemoveResourcePermissionRequest.h:131
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: RemoveResourcePermissionRequest.h:48
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: RemoveResourcePermissionRequest.h:72
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithPrincipalId
RemoveResourcePermissionRequest & WithPrincipalId(Aws::String &&value)
Definition: RemoveResourcePermissionRequest.h:167
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::SetResourceId
void SetResourceId(const char *value)
Definition: RemoveResourcePermissionRequest.h:116
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::RemoveResourcePermissionRequest
RemoveResourcePermissionRequest()
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithAuthenticationToken
RemoveResourcePermissionRequest & WithAuthenticationToken(const char *value)
Definition: RemoveResourcePermissionRequest.h:90
Aws::WorkDocs::Model::RemoveResourcePermissionRequest::WithResourceId
RemoveResourcePermissionRequest & WithResourceId(const Aws::String &value)
Definition: RemoveResourcePermissionRequest.h:121