AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetInstanceStateResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/InstanceState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
29 {
30 public:
31 AWS_LIGHTSAIL_API GetInstanceStateResult() = default;
34
35
37
40 inline const InstanceState& GetState() const { return m_state; }
41 template<typename StateT = InstanceState>
42 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
43 template<typename StateT = InstanceState>
44 GetInstanceStateResult& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
46
48
49 inline const Aws::String& GetRequestId() const { return m_requestId; }
50 template<typename RequestIdT = Aws::String>
51 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
52 template<typename RequestIdT = Aws::String>
53 GetInstanceStateResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
55 private:
56
57 InstanceState m_state;
58 bool m_stateHasBeenSet = false;
59
60 Aws::String m_requestId;
61 bool m_requestIdHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Lightsail
66} // namespace Aws
AWS_LIGHTSAIL_API GetInstanceStateResult()=default
AWS_LIGHTSAIL_API GetInstanceStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetInstanceStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstanceStateResult & WithRequestId(RequestIdT &&value)
GetInstanceStateResult & WithState(StateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue