AWS SDK for C++  1.9.22
AWS SDK for C++
GetInstanceStateResult.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 
38  inline const InstanceState& GetState() const{ return m_state; }
39 
43  inline void SetState(const InstanceState& value) { m_state = value; }
44 
48  inline void SetState(InstanceState&& value) { m_state = std::move(value); }
49 
53  inline GetInstanceStateResult& WithState(const InstanceState& value) { SetState(value); return *this;}
54 
58  inline GetInstanceStateResult& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
59 
60  private:
61 
62  InstanceState m_state;
63  };
64 
65 } // namespace Model
66 } // namespace Lightsail
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
InstanceState.h
Aws::Lightsail::Model::InstanceState
Definition: InstanceState.h:33
Aws::Lightsail::Model::GetInstanceStateResult::GetState
const InstanceState & GetState() const
Definition: GetInstanceStateResult.h:38
Aws::Lightsail::Model::GetInstanceStateResult::GetInstanceStateResult
GetInstanceStateResult()
Aws::Lightsail::Model::GetInstanceStateResult
Definition: GetInstanceStateResult.h:28
Aws::Lightsail::Model::GetInstanceStateResult::SetState
void SetState(const InstanceState &value)
Definition: GetInstanceStateResult.h:43
Aws::Lightsail::Model::GetInstanceStateResult::GetInstanceStateResult
GetInstanceStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstanceStateResult::WithState
GetInstanceStateResult & WithState(const InstanceState &value)
Definition: GetInstanceStateResult.h:53
Aws::Lightsail::Model::GetInstanceStateResult::WithState
GetInstanceStateResult & WithState(InstanceState &&value)
Definition: GetInstanceStateResult.h:58
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetInstanceStateResult::operator=
GetInstanceStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstanceStateResult::SetState
void SetState(InstanceState &&value)
Definition: GetInstanceStateResult.h:48