AWS SDK for C++  1.9.104
AWS SDK for C++
GetBucketsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
41 
45  inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
46 
50  inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = std::move(value); }
51 
55  inline GetBucketsResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
56 
60  inline GetBucketsResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
61 
65  inline GetBucketsResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
66 
70  inline GetBucketsResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
81 
89  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
90 
98  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
99 
107  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
108 
116  inline GetBucketsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
117 
125  inline GetBucketsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
126 
134  inline GetBucketsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Bucket> m_buckets;
139 
140  Aws::String m_nextPageToken;
141  };
142 
143 } // namespace Model
144 } // namespace Lightsail
145 } // namespace Aws
Aws::Lightsail::Model::GetBucketsResult::WithNextPageToken
GetBucketsResult & WithNextPageToken(const char *value)
Definition: GetBucketsResult.h:134
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetBucketsResult::SetBuckets
void SetBuckets(const Aws::Vector< Bucket > &value)
Definition: GetBucketsResult.h:45
Aws::Lightsail::Model::GetBucketsResult::AddBuckets
GetBucketsResult & AddBuckets(Bucket &&value)
Definition: GetBucketsResult.h:70
Aws::Lightsail::Model::GetBucketsResult::WithBuckets
GetBucketsResult & WithBuckets(const Aws::Vector< Bucket > &value)
Definition: GetBucketsResult.h:55
Aws::Lightsail::Model::GetBucketsResult::operator=
GetBucketsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetBucketsResult::WithNextPageToken
GetBucketsResult & WithNextPageToken(const Aws::String &value)
Definition: GetBucketsResult.h:116
Aws::Lightsail::Model::GetBucketsResult::WithBuckets
GetBucketsResult & WithBuckets(Aws::Vector< Bucket > &&value)
Definition: GetBucketsResult.h:60
Aws::Lightsail::Model::GetBucketsResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetBucketsResult.h:89
Aws::Lightsail::Model::GetBucketsResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetBucketsResult.h:80
Aws::Lightsail::Model::GetBucketsResult::GetBucketsResult
GetBucketsResult()
Aws::Lightsail::Model::GetBucketsResult::SetBuckets
void SetBuckets(Aws::Vector< Bucket > &&value)
Definition: GetBucketsResult.h:50
Aws::Lightsail::Model::GetBucketsResult::AddBuckets
GetBucketsResult & AddBuckets(const Bucket &value)
Definition: GetBucketsResult.h:65
Aws::Lightsail::Model::GetBucketsResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetBucketsResult.h:98
AWSString.h
Aws::Lightsail::Model::GetBucketsResult::GetBucketsResult
GetBucketsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::Bucket
Definition: Bucket.h:39
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Bucket.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetBucketsResult::GetBuckets
const Aws::Vector< Bucket > & GetBuckets() const
Definition: GetBucketsResult.h:40
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetBucketsResult::WithNextPageToken
GetBucketsResult & WithNextPageToken(Aws::String &&value)
Definition: GetBucketsResult.h:125
Aws::Lightsail::Model::GetBucketsResult
Definition: GetBucketsResult.h:30
Aws::Lightsail::Model::GetBucketsResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetBucketsResult.h:107