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