AWS SDK for C++  1.9.104
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 ServiceDiscovery
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Instance& GetInstance() const{ return m_instance; }
39 
43  inline void SetInstance(const Instance& value) { m_instance = value; }
44 
48  inline void SetInstance(Instance&& value) { m_instance = std::move(value); }
49 
53  inline GetInstanceResult& WithInstance(const Instance& value) { SetInstance(value); return *this;}
54 
58  inline GetInstanceResult& WithInstance(Instance&& value) { SetInstance(std::move(value)); return *this;}
59 
60  private:
61 
62  Instance m_instance;
63  };
64 
65 } // namespace Model
66 } // namespace ServiceDiscovery
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::GetInstanceResult::WithInstance
GetInstanceResult & WithInstance(const Instance &value)
Definition: GetInstanceResult.h:53
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::GetInstanceResult::WithInstance
GetInstanceResult & WithInstance(Instance &&value)
Definition: GetInstanceResult.h:58
Aws::ServiceDiscovery::Model::GetInstanceResult::GetInstance
const Instance & GetInstance() const
Definition: GetInstanceResult.h:38
Instance.h
Aws::ServiceDiscovery::Model::GetInstanceResult::GetInstanceResult
GetInstanceResult()
Aws::ServiceDiscovery::Model::GetInstanceResult::GetInstanceResult
GetInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::Instance
Definition: Instance.h:35
Aws::ServiceDiscovery::Model::GetInstanceResult::operator=
GetInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::GetInstanceResult::SetInstance
void SetInstance(Instance &&value)
Definition: GetInstanceResult.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::GetInstanceResult::SetInstance
void SetInstance(const Instance &value)
Definition: GetInstanceResult.h:43
Aws::ServiceDiscovery::Model::GetInstanceResult
Definition: GetInstanceResult.h:28