AWS SDK for C++  1.9.44
AWS SDK for C++
DescribeResourcePermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace WorkDocs
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeResourcePermissions"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
41 
42 
47  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
48 
53  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
54 
59  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
60 
65  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
66 
71  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
72 
77  inline DescribeResourcePermissionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
78 
83  inline DescribeResourcePermissionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
84 
89  inline DescribeResourcePermissionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
90 
91 
95  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
96 
100  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
101 
105  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
106 
110  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
111 
115  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
116 
120  inline DescribeResourcePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
121 
125  inline DescribeResourcePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
126 
130  inline DescribeResourcePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
131 
132 
136  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
137 
141  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
142 
146  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
147 
151  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
152 
156  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
157 
161  inline DescribeResourcePermissionsRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
162 
166  inline DescribeResourcePermissionsRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
167 
171  inline DescribeResourcePermissionsRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
172 
173 
177  inline int GetLimit() const{ return m_limit; }
178 
182  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
183 
187  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
188 
192  inline DescribeResourcePermissionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
193 
194 
199  inline const Aws::String& GetMarker() const{ return m_marker; }
200 
205  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
206 
211  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
212 
217  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
218 
223  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
224 
229  inline DescribeResourcePermissionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
230 
235  inline DescribeResourcePermissionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
236 
241  inline DescribeResourcePermissionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
242 
243  private:
244 
245  Aws::String m_authenticationToken;
246  bool m_authenticationTokenHasBeenSet;
247 
248  Aws::String m_resourceId;
249  bool m_resourceIdHasBeenSet;
250 
251  Aws::String m_principalId;
252  bool m_principalIdHasBeenSet;
253 
254  int m_limit;
255  bool m_limitHasBeenSet;
256 
257  Aws::String m_marker;
258  bool m_markerHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace WorkDocs
263 } // namespace Aws
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DescribeResourcePermissionsRequest.h:115
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:105
Aws::Http::URI
Definition: URI.h:32
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithAuthenticationToken
DescribeResourcePermissionsRequest & WithAuthenticationToken(const char *value)
Definition: DescribeResourcePermissionsRequest.h:89
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithPrincipalId
DescribeResourcePermissionsRequest & WithPrincipalId(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:161
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: DescribeResourcePermissionsRequest.h:136
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: DescribeResourcePermissionsRequest.h:53
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetLimit
void SetLimit(int value)
Definition: DescribeResourcePermissionsRequest.h:187
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithAuthenticationToken
DescribeResourcePermissionsRequest & WithAuthenticationToken(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:77
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithLimit
DescribeResourcePermissionsRequest & WithLimit(int value)
Definition: DescribeResourcePermissionsRequest.h:192
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DescribeResourcePermissionsRequest.h:95
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:59
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:151
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:217
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetLimit
int GetLimit() const
Definition: DescribeResourcePermissionsRequest.h:177
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:146
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeResourcePermissionsRequest.h:199
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithPrincipalId
DescribeResourcePermissionsRequest & WithPrincipalId(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:166
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:110
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeResourcePermissionsRequest.h:182
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithResourceId
DescribeResourcePermissionsRequest & WithResourceId(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:125
WorkDocs_EXPORTS.h
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithMarker
DescribeResourcePermissionsRequest & WithMarker(const char *value)
Definition: DescribeResourcePermissionsRequest.h:241
AWSString.h
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: DescribeResourcePermissionsRequest.h:71
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: DescribeResourcePermissionsRequest.h:47
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest
Definition: DescribeResourcePermissionsRequest.h:26
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithAuthenticationToken
DescribeResourcePermissionsRequest & WithAuthenticationToken(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:83
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithMarker
DescribeResourcePermissionsRequest & WithMarker(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:235
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeResourcePermissionsRequest.h:223
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithMarker
DescribeResourcePermissionsRequest & WithMarker(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:229
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::DescribeResourcePermissionsRequest
DescribeResourcePermissionsRequest()
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithResourceId
DescribeResourcePermissionsRequest & WithResourceId(const char *value)
Definition: DescribeResourcePermissionsRequest.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeResourcePermissionsRequest.h:34
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeResourcePermissionsRequest.h:205
WorkDocsRequest.h
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithPrincipalId
DescribeResourcePermissionsRequest & WithPrincipalId(const char *value)
Definition: DescribeResourcePermissionsRequest.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: DescribeResourcePermissionsRequest.h:141
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::WithResourceId
DescribeResourcePermissionsRequest & WithResourceId(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:120
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: DescribeResourcePermissionsRequest.h:156
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeResourcePermissionsRequest.h:211
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: DescribeResourcePermissionsRequest.h:65
Aws::WorkDocs::Model::DescribeResourcePermissionsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DescribeResourcePermissionsRequest.h:100