AWS SDK for C++  1.9.109
AWS SDK for C++
GetBundlesResult.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 
41  inline const Aws::Vector<Bundle>& GetBundles() const{ return m_bundles; }
42 
47  inline void SetBundles(const Aws::Vector<Bundle>& value) { m_bundles = value; }
48 
53  inline void SetBundles(Aws::Vector<Bundle>&& value) { m_bundles = std::move(value); }
54 
59  inline GetBundlesResult& WithBundles(const Aws::Vector<Bundle>& value) { SetBundles(value); return *this;}
60 
65  inline GetBundlesResult& WithBundles(Aws::Vector<Bundle>&& value) { SetBundles(std::move(value)); return *this;}
66 
71  inline GetBundlesResult& AddBundles(const Bundle& value) { m_bundles.push_back(value); return *this; }
72 
77  inline GetBundlesResult& AddBundles(Bundle&& value) { m_bundles.push_back(std::move(value)); return *this; }
78 
79 
87  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
88 
96  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
97 
105  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
106 
114  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
115 
123  inline GetBundlesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
124 
132  inline GetBundlesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
133 
141  inline GetBundlesResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
142 
143  private:
144 
145  Aws::Vector<Bundle> m_bundles;
146 
147  Aws::String m_nextPageToken;
148  };
149 
150 } // namespace Model
151 } // namespace Lightsail
152 } // namespace Aws
Aws::Lightsail::Model::GetBundlesResult::WithNextPageToken
GetBundlesResult & WithNextPageToken(Aws::String &&value)
Definition: GetBundlesResult.h:132
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetBundlesResult::AddBundles
GetBundlesResult & AddBundles(const Bundle &value)
Definition: GetBundlesResult.h:71
Aws::Lightsail::Model::GetBundlesResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetBundlesResult.h:105
Aws::Lightsail::Model::GetBundlesResult::SetBundles
void SetBundles(const Aws::Vector< Bundle > &value)
Definition: GetBundlesResult.h:47
Aws::Lightsail::Model::GetBundlesResult::SetBundles
void SetBundles(Aws::Vector< Bundle > &&value)
Definition: GetBundlesResult.h:53
Aws::Lightsail::Model::GetBundlesResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetBundlesResult.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Bundle.h
AWSVector.h
Aws::Lightsail::Model::GetBundlesResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetBundlesResult.h:114
Aws::Lightsail::Model::GetBundlesResult::WithBundles
GetBundlesResult & WithBundles(Aws::Vector< Bundle > &&value)
Definition: GetBundlesResult.h:65
Aws::Lightsail::Model::GetBundlesResult::GetBundlesResult
GetBundlesResult()
Aws::Lightsail::Model::GetBundlesResult::WithBundles
GetBundlesResult & WithBundles(const Aws::Vector< Bundle > &value)
Definition: GetBundlesResult.h:59
Aws::Lightsail::Model::GetBundlesResult::WithNextPageToken
GetBundlesResult & WithNextPageToken(const Aws::String &value)
Definition: GetBundlesResult.h:123
AWSString.h
Aws::Lightsail::Model::GetBundlesResult::AddBundles
GetBundlesResult & AddBundles(Bundle &&value)
Definition: GetBundlesResult.h:77
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetBundlesResult::WithNextPageToken
GetBundlesResult & WithNextPageToken(const char *value)
Definition: GetBundlesResult.h:141
Aws::Lightsail::Model::Bundle
Definition: Bundle.h:35
Aws::Lightsail::Model::GetBundlesResult
Definition: GetBundlesResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetBundlesResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetBundlesResult.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetBundlesResult::operator=
GetBundlesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetBundlesResult::GetBundles
const Aws::Vector< Bundle > & GetBundles() const
Definition: GetBundlesResult.h:41
Aws::Lightsail::Model::GetBundlesResult::GetBundlesResult
GetBundlesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)