AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
58 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
59 template<typename AccountIdT = Aws::String>
60 ListAccessGrantsRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
62
64
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 template<typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
73 template<typename NextTokenT = Aws::String>
74 ListAccessGrantsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
76
78
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline ListAccessGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
103 inline GranteeType GetGranteeType() const { return m_granteeType; }
104 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
105 inline void SetGranteeType(GranteeType value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
108
110
118 inline const Aws::String& GetGranteeIdentifier() const { return m_granteeIdentifier; }
119 inline bool GranteeIdentifierHasBeenSet() const { return m_granteeIdentifierHasBeenSet; }
120 template<typename GranteeIdentifierT = Aws::String>
121 void SetGranteeIdentifier(GranteeIdentifierT&& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = std::forward<GranteeIdentifierT>(value); }
122 template<typename GranteeIdentifierT = Aws::String>
123 ListAccessGrantsRequest& WithGranteeIdentifier(GranteeIdentifierT&& value) { SetGranteeIdentifier(std::forward<GranteeIdentifierT>(value)); return *this;}
125
127
134 inline Permission GetPermission() const { return m_permission; }
135 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
136 inline void SetPermission(Permission value) { m_permissionHasBeenSet = true; m_permission = value; }
137 inline ListAccessGrantsRequest& WithPermission(Permission value) { SetPermission(value); return *this;}
139
141
145 inline const Aws::String& GetGrantScope() const { return m_grantScope; }
146 inline bool GrantScopeHasBeenSet() const { return m_grantScopeHasBeenSet; }
147 template<typename GrantScopeT = Aws::String>
148 void SetGrantScope(GrantScopeT&& value) { m_grantScopeHasBeenSet = true; m_grantScope = std::forward<GrantScopeT>(value); }
149 template<typename GrantScopeT = Aws::String>
150 ListAccessGrantsRequest& WithGrantScope(GrantScopeT&& value) { SetGrantScope(std::forward<GrantScopeT>(value)); return *this;}
152
154
160 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
161 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
162 template<typename ApplicationArnT = Aws::String>
163 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
164 template<typename ApplicationArnT = Aws::String>
165 ListAccessGrantsRequest& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
167 private:
168
169 Aws::String m_accountId;
170 bool m_accountIdHasBeenSet = false;
171
172 Aws::String m_nextToken;
173 bool m_nextTokenHasBeenSet = false;
174
175 int m_maxResults{0};
176 bool m_maxResultsHasBeenSet = false;
177
178 GranteeType m_granteeType{GranteeType::NOT_SET};
179 bool m_granteeTypeHasBeenSet = false;
180
181 Aws::String m_granteeIdentifier;
182 bool m_granteeIdentifierHasBeenSet = false;
183
184 Permission m_permission{Permission::NOT_SET};
185 bool m_permissionHasBeenSet = false;
186
187 Aws::String m_grantScope;
188 bool m_grantScopeHasBeenSet = false;
189
190 Aws::String m_applicationArn;
191 bool m_applicationArnHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace S3Control
196} // namespace Aws
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
ListAccessGrantsRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
ListAccessGrantsRequest & WithNextToken(NextTokenT &&value)
ListAccessGrantsRequest & WithMaxResults(int value)
ListAccessGrantsRequest & WithGrantScope(GrantScopeT &&value)
ListAccessGrantsRequest & WithPermission(Permission value)
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAccessGrantsRequest & WithGranteeType(GranteeType value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API ListAccessGrantsRequest()=default
ListAccessGrantsRequest & WithApplicationArn(ApplicationArnT &&value)
ListAccessGrantsRequest & WithGranteeIdentifier(GranteeIdentifierT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String