AWS SDK for C++  1.9.108
AWS SDK for C++
GetBucketsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetBuckets"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
43 
49  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
50 
56  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
57 
63  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
64 
70  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
71 
77  inline GetBucketsRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
78 
84  inline GetBucketsRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
85 
91  inline GetBucketsRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
92 
93 
100  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
101 
108  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
109 
116  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
117 
124  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
125 
132  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
133 
140  inline GetBucketsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
141 
148  inline GetBucketsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
149 
156  inline GetBucketsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
157 
158 
164  inline bool GetIncludeConnectedResources() const{ return m_includeConnectedResources; }
165 
171  inline bool IncludeConnectedResourcesHasBeenSet() const { return m_includeConnectedResourcesHasBeenSet; }
172 
178  inline void SetIncludeConnectedResources(bool value) { m_includeConnectedResourcesHasBeenSet = true; m_includeConnectedResources = value; }
179 
185  inline GetBucketsRequest& WithIncludeConnectedResources(bool value) { SetIncludeConnectedResources(value); return *this;}
186 
187  private:
188 
189  Aws::String m_bucketName;
190  bool m_bucketNameHasBeenSet;
191 
192  Aws::String m_pageToken;
193  bool m_pageTokenHasBeenSet;
194 
195  bool m_includeConnectedResources;
196  bool m_includeConnectedResourcesHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace Lightsail
201 } // namespace Aws
Aws::Lightsail::Model::GetBucketsRequest::WithBucketName
GetBucketsRequest & WithBucketName(Aws::String &&value)
Definition: GetBucketsRequest.h:84
Aws::Lightsail::Model::GetBucketsRequest
Definition: GetBucketsRequest.h:22
Aws::Lightsail::Model::GetBucketsRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: GetBucketsRequest.h:49
Aws::Lightsail::Model::GetBucketsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketsRequest.h:30
Aws::Lightsail::Model::GetBucketsRequest::WithPageToken
GetBucketsRequest & WithPageToken(const Aws::String &value)
Definition: GetBucketsRequest.h:140
Aws::Lightsail::Model::GetBucketsRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: GetBucketsRequest.h:100
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetBucketsRequest::SetPageToken
void SetPageToken(const char *value)
Definition: GetBucketsRequest.h:132
LightsailRequest.h
Aws::Lightsail::Model::GetBucketsRequest::GetIncludeConnectedResources
bool GetIncludeConnectedResources() const
Definition: GetBucketsRequest.h:164
Aws::Lightsail::Model::GetBucketsRequest::IncludeConnectedResourcesHasBeenSet
bool IncludeConnectedResourcesHasBeenSet() const
Definition: GetBucketsRequest.h:171
Aws::Lightsail::Model::GetBucketsRequest::GetBucketsRequest
GetBucketsRequest()
Aws::Lightsail::Model::GetBucketsRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: GetBucketsRequest.h:124
Aws::Lightsail::Model::GetBucketsRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: GetBucketsRequest.h:42
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::GetBucketsRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: GetBucketsRequest.h:116
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetBucketsRequest::WithPageToken
GetBucketsRequest & WithPageToken(const char *value)
Definition: GetBucketsRequest.h:156
Aws::Lightsail::Model::GetBucketsRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: GetBucketsRequest.h:63
Aws::Lightsail::Model::GetBucketsRequest::WithBucketName
GetBucketsRequest & WithBucketName(const char *value)
Definition: GetBucketsRequest.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetBucketsRequest::SetBucketName
void SetBucketName(const char *value)
Definition: GetBucketsRequest.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetBucketsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetBucketsRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: GetBucketsRequest.h:56
Aws::Lightsail::Model::GetBucketsRequest::WithPageToken
GetBucketsRequest & WithPageToken(Aws::String &&value)
Definition: GetBucketsRequest.h:148
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetBucketsRequest::SetIncludeConnectedResources
void SetIncludeConnectedResources(bool value)
Definition: GetBucketsRequest.h:178
Aws::Lightsail::Model::GetBucketsRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: GetBucketsRequest.h:108
Aws::Lightsail::Model::GetBucketsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetBucketsRequest::WithBucketName
GetBucketsRequest & WithBucketName(const Aws::String &value)
Definition: GetBucketsRequest.h:77
Aws::Lightsail::Model::GetBucketsRequest::WithIncludeConnectedResources
GetBucketsRequest & WithIncludeConnectedResources(bool value)
Definition: GetBucketsRequest.h:185