AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAccessGrantsRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/GranteeType.h>
11#include <aws/s3control/model/Permission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3Control
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_S3CONTROL_API ListAccessGrantsRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListAccessGrants"; }
37
38 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
39
40 AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
44 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
45
49 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
50
52
55 inline const Aws::String& GetAccountId() const{ return m_accountId; }
56 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
58 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
59 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
60 inline ListAccessGrantsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
61 inline ListAccessGrantsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
62 inline ListAccessGrantsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
64
66
71 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
74 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
75 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 inline ListAccessGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
77 inline ListAccessGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 inline ListAccessGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80
82
88 inline int GetMaxResults() const{ return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
91 inline ListAccessGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
93
95
107 inline const GranteeType& GetGranteeType() const{ return m_granteeType; }
108 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
109 inline void SetGranteeType(const GranteeType& value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
110 inline void SetGranteeType(GranteeType&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::move(value); }
111 inline ListAccessGrantsRequest& WithGranteeType(const GranteeType& value) { SetGranteeType(value); return *this;}
112 inline ListAccessGrantsRequest& WithGranteeType(GranteeType&& value) { SetGranteeType(std::move(value)); return *this;}
114
116
124 inline const Aws::String& GetGranteeIdentifier() const{ return m_granteeIdentifier; }
125 inline bool GranteeIdentifierHasBeenSet() const { return m_granteeIdentifierHasBeenSet; }
126 inline void SetGranteeIdentifier(const Aws::String& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = value; }
127 inline void SetGranteeIdentifier(Aws::String&& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = std::move(value); }
128 inline void SetGranteeIdentifier(const char* value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier.assign(value); }
130 inline ListAccessGrantsRequest& WithGranteeIdentifier(Aws::String&& value) { SetGranteeIdentifier(std::move(value)); return *this;}
131 inline ListAccessGrantsRequest& WithGranteeIdentifier(const char* value) { SetGranteeIdentifier(value); return *this;}
133
135
142 inline const Permission& GetPermission() const{ return m_permission; }
143 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
144 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
145 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
146 inline ListAccessGrantsRequest& WithPermission(const Permission& value) { SetPermission(value); return *this;}
147 inline ListAccessGrantsRequest& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
149
151
155 inline const Aws::String& GetGrantScope() const{ return m_grantScope; }
156 inline bool GrantScopeHasBeenSet() const { return m_grantScopeHasBeenSet; }
157 inline void SetGrantScope(const Aws::String& value) { m_grantScopeHasBeenSet = true; m_grantScope = value; }
158 inline void SetGrantScope(Aws::String&& value) { m_grantScopeHasBeenSet = true; m_grantScope = std::move(value); }
159 inline void SetGrantScope(const char* value) { m_grantScopeHasBeenSet = true; m_grantScope.assign(value); }
160 inline ListAccessGrantsRequest& WithGrantScope(const Aws::String& value) { SetGrantScope(value); return *this;}
161 inline ListAccessGrantsRequest& WithGrantScope(Aws::String&& value) { SetGrantScope(std::move(value)); return *this;}
162 inline ListAccessGrantsRequest& WithGrantScope(const char* value) { SetGrantScope(value); return *this;}
164
166
172 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
173 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
174 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
175 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
176 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
177 inline ListAccessGrantsRequest& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
178 inline ListAccessGrantsRequest& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
179 inline ListAccessGrantsRequest& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
181 private:
182
183 Aws::String m_accountId;
184 bool m_accountIdHasBeenSet = false;
185
186 Aws::String m_nextToken;
187 bool m_nextTokenHasBeenSet = false;
188
189 int m_maxResults;
190 bool m_maxResultsHasBeenSet = false;
191
192 GranteeType m_granteeType;
193 bool m_granteeTypeHasBeenSet = false;
194
195 Aws::String m_granteeIdentifier;
196 bool m_granteeIdentifierHasBeenSet = false;
197
198 Permission m_permission;
199 bool m_permissionHasBeenSet = false;
200
201 Aws::String m_grantScope;
202 bool m_grantScopeHasBeenSet = false;
203
204 Aws::String m_applicationArn;
205 bool m_applicationArnHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace S3Control
210} // namespace Aws
ListAccessGrantsRequest & WithGrantScope(const Aws::String &value)
ListAccessGrantsRequest & WithPermission(const Permission &value)
ListAccessGrantsRequest & WithAccountId(const char *value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
ListAccessGrantsRequest & WithGranteeIdentifier(const char *value)
ListAccessGrantsRequest & WithGranteeType(const GranteeType &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
ListAccessGrantsRequest & WithGrantScope(const char *value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
ListAccessGrantsRequest & WithPermission(Permission &&value)
ListAccessGrantsRequest & WithGranteeIdentifier(const Aws::String &value)
ListAccessGrantsRequest & WithNextToken(Aws::String &&value)
ListAccessGrantsRequest & WithApplicationArn(const char *value)
ListAccessGrantsRequest & WithMaxResults(int value)
ListAccessGrantsRequest & WithApplicationArn(Aws::String &&value)
ListAccessGrantsRequest & WithApplicationArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAccessGrantsRequest & WithGranteeIdentifier(Aws::String &&value)
ListAccessGrantsRequest & WithGrantScope(Aws::String &&value)
ListAccessGrantsRequest & WithGranteeType(GranteeType &&value)
ListAccessGrantsRequest & WithAccountId(const Aws::String &value)
ListAccessGrantsRequest & WithNextToken(const char *value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAccessGrantsRequest & WithNextToken(const Aws::String &value)
ListAccessGrantsRequest & WithAccountId(Aws::String &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String