AWS SDK for C++  1.9.103
AWS SDK for C++
GetInstanceResult.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 Instance& GetInstance() const{ return m_instance; }
40 
45  inline void SetInstance(const Instance& value) { m_instance = value; }
46 
51  inline void SetInstance(Instance&& value) { m_instance = std::move(value); }
52 
57  inline GetInstanceResult& WithInstance(const Instance& value) { SetInstance(value); return *this;}
58 
63  inline GetInstanceResult& WithInstance(Instance&& value) { SetInstance(std::move(value)); return *this;}
64 
65  private:
66 
67  Instance m_instance;
68  };
69 
70 } // namespace Model
71 } // namespace Lightsail
72 } // namespace Aws
Aws::Lightsail::Model::GetInstanceResult::GetInstanceResult
GetInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetInstanceResult::SetInstance
void SetInstance(Instance &&value)
Definition: GetInstanceResult.h:51
Aws::Lightsail::Model::GetInstanceResult
Definition: GetInstanceResult.h:28
Aws::Lightsail::Model::GetInstanceResult::GetInstanceResult
GetInstanceResult()
Aws::Lightsail::Model::GetInstanceResult::WithInstance
GetInstanceResult & WithInstance(Instance &&value)
Definition: GetInstanceResult.h:63
Aws::Lightsail::Model::Instance
Definition: Instance.h:43
Aws::Lightsail::Model::GetInstanceResult::WithInstance
GetInstanceResult & WithInstance(const Instance &value)
Definition: GetInstanceResult.h:57
Aws::Lightsail::Model::GetInstanceResult::GetInstance
const Instance & GetInstance() const
Definition: GetInstanceResult.h:39
Aws::Lightsail::Model::GetInstanceResult::operator=
GetInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Lightsail_EXPORTS.h
Instance.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstanceResult::SetInstance
void SetInstance(const Instance &value)
Definition: GetInstanceResult.h:45
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28