AWS SDK for C++  1.9.104
AWS SDK for C++
ListAccessPointsRequest.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 S3Control
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 "ListAccessPoints"; }
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& GetAccountId() const{ return m_accountId; }
48 
53  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
59  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
60 
65  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
66 
71  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
72 
77  inline ListAccessPointsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
78 
83  inline ListAccessPointsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
84 
89  inline ListAccessPointsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
90 
91 
105  inline const Aws::String& GetBucket() const{ return m_bucket; }
106 
120  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
121 
135  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
136 
150  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
151 
165  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
166 
180  inline ListAccessPointsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
181 
195  inline ListAccessPointsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
196 
210  inline ListAccessPointsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
211 
212 
219  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
220 
227  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
228 
235  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
236 
243  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
244 
251  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
252 
259  inline ListAccessPointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
260 
267  inline ListAccessPointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
268 
275  inline ListAccessPointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
276 
277 
284  inline int GetMaxResults() const{ return m_maxResults; }
285 
292  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
293 
300  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
301 
308  inline ListAccessPointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
309 
310  private:
311 
312  Aws::String m_accountId;
313  bool m_accountIdHasBeenSet;
314 
315  Aws::String m_bucket;
316  bool m_bucketHasBeenSet;
317 
318  Aws::String m_nextToken;
319  bool m_nextTokenHasBeenSet;
320 
321  int m_maxResults;
322  bool m_maxResultsHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace S3Control
327 } // namespace Aws
Aws::S3Control::Model::ListAccessPointsRequest::WithBucket
ListAccessPointsRequest & WithBucket(const Aws::String &value)
Definition: ListAccessPointsRequest.h:180
Aws::S3Control::Model::ListAccessPointsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccessPointsRequest.h:300
Aws::S3Control::Model::ListAccessPointsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::ListAccessPointsRequest::SetBucket
void SetBucket(const char *value)
Definition: ListAccessPointsRequest.h:165
Aws::Http::URI
Definition: URI.h:32
Aws::S3Control::Model::ListAccessPointsRequest::WithBucket
ListAccessPointsRequest & WithBucket(const char *value)
Definition: ListAccessPointsRequest.h:210
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::ListAccessPointsRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: ListAccessPointsRequest.h:53
Aws::S3Control::Model::ListAccessPointsRequest::WithAccountId
ListAccessPointsRequest & WithAccountId(const char *value)
Definition: ListAccessPointsRequest.h:89
Aws::S3Control::Model::ListAccessPointsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccessPointsRequest.h:251
Aws::S3Control::Model::ListAccessPointsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccessPointsRequest.h:243
Aws::S3Control::Model::ListAccessPointsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccessPointsRequest.h:284
Aws::S3Control::Model::ListAccessPointsRequest::GetBucket
const Aws::String & GetBucket() const
Definition: ListAccessPointsRequest.h:105
Aws::S3Control::Model::ListAccessPointsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::ListAccessPointsRequest::WithNextToken
ListAccessPointsRequest & WithNextToken(const Aws::String &value)
Definition: ListAccessPointsRequest.h:259
Aws::S3Control::Model::ListAccessPointsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccessPointsRequest.h:235
Aws::S3Control::Model::ListAccessPointsRequest::WithMaxResults
ListAccessPointsRequest & WithMaxResults(int value)
Definition: ListAccessPointsRequest.h:308
S3Control_EXPORTS.h
Aws::S3Control::Model::ListAccessPointsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccessPointsRequest.h:292
Aws::S3Control::Model::ListAccessPointsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: ListAccessPointsRequest.h:65
Aws::S3Control::Model::ListAccessPointsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3Control::Model::ListAccessPointsRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: ListAccessPointsRequest.h:120
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::ListAccessPointsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: ListAccessPointsRequest.h:71
AWSString.h
Aws::S3Control::Model::ListAccessPointsRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: ListAccessPointsRequest.h:150
Aws::S3Control::Model::ListAccessPointsRequest::WithAccountId
ListAccessPointsRequest & WithAccountId(const Aws::String &value)
Definition: ListAccessPointsRequest.h:77
Aws::S3Control::Model::ListAccessPointsRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: ListAccessPointsRequest.h:135
Aws::S3Control::Model::ListAccessPointsRequest::ListAccessPointsRequest
ListAccessPointsRequest()
Aws::S3Control::Model::ListAccessPointsRequest::WithAccountId
ListAccessPointsRequest & WithAccountId(Aws::String &&value)
Definition: ListAccessPointsRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::ListAccessPointsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccessPointsRequest.h:227
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::ListAccessPointsRequest::WithNextToken
ListAccessPointsRequest & WithNextToken(Aws::String &&value)
Definition: ListAccessPointsRequest.h:267
Aws::S3Control::Model::ListAccessPointsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccessPointsRequest.h:34
Aws::S3Control::Model::ListAccessPointsRequest::WithNextToken
ListAccessPointsRequest & WithNextToken(const char *value)
Definition: ListAccessPointsRequest.h:275
Aws::S3Control::Model::ListAccessPointsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccessPointsRequest.h:219
Aws::S3Control::Model::ListAccessPointsRequest
Definition: ListAccessPointsRequest.h:26
Aws::S3Control::Model::ListAccessPointsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: ListAccessPointsRequest.h:59
Aws::S3Control::Model::ListAccessPointsRequest::WithBucket
ListAccessPointsRequest & WithBucket(Aws::String &&value)
Definition: ListAccessPointsRequest.h:195
Aws::S3Control::Model::ListAccessPointsRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: ListAccessPointsRequest.h:47