AWS SDK for C++  1.9.16
AWS SDK for C++
GetInstanceSnapshotResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
39  inline const InstanceSnapshot& GetInstanceSnapshot() const{ return m_instanceSnapshot; }
40 
45  inline void SetInstanceSnapshot(const InstanceSnapshot& value) { m_instanceSnapshot = value; }
46 
51  inline void SetInstanceSnapshot(InstanceSnapshot&& value) { m_instanceSnapshot = std::move(value); }
52 
57  inline GetInstanceSnapshotResult& WithInstanceSnapshot(const InstanceSnapshot& value) { SetInstanceSnapshot(value); return *this;}
58 
63  inline GetInstanceSnapshotResult& WithInstanceSnapshot(InstanceSnapshot&& value) { SetInstanceSnapshot(std::move(value)); return *this;}
64 
65  private:
66 
67  InstanceSnapshot m_instanceSnapshot;
68  };
69 
70 } // namespace Model
71 } // namespace Lightsail
72 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetInstanceSnapshotResult::SetInstanceSnapshot
void SetInstanceSnapshot(const InstanceSnapshot &value)
Definition: GetInstanceSnapshotResult.h:45
InstanceSnapshot.h
Aws::Lightsail::Model::GetInstanceSnapshotResult::GetInstanceSnapshot
const InstanceSnapshot & GetInstanceSnapshot() const
Definition: GetInstanceSnapshotResult.h:39
Aws::Lightsail::Model::GetInstanceSnapshotResult::WithInstanceSnapshot
GetInstanceSnapshotResult & WithInstanceSnapshot(InstanceSnapshot &&value)
Definition: GetInstanceSnapshotResult.h:63
Aws::Lightsail::Model::GetInstanceSnapshotResult::WithInstanceSnapshot
GetInstanceSnapshotResult & WithInstanceSnapshot(const InstanceSnapshot &value)
Definition: GetInstanceSnapshotResult.h:57
Aws::Lightsail::Model::GetInstanceSnapshotResult::operator=
GetInstanceSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstanceSnapshotResult::SetInstanceSnapshot
void SetInstanceSnapshot(InstanceSnapshot &&value)
Definition: GetInstanceSnapshotResult.h:51
Aws::Lightsail::Model::GetInstanceSnapshotResult::GetInstanceSnapshotResult
GetInstanceSnapshotResult()
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstanceSnapshotResult
Definition: GetInstanceSnapshotResult.h:28
Aws::Lightsail::Model::GetInstanceSnapshotResult::GetInstanceSnapshotResult
GetInstanceSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceSnapshot
Definition: InstanceSnapshot.h:39