AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceState.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/snow-device-management/model/InstanceStateName.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SnowDeviceManagement
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SNOWDEVICEMANAGEMENT_API InstanceState();
36 AWS_SNOWDEVICEMANAGEMENT_API InstanceState(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWDEVICEMANAGEMENT_API InstanceState& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
57 inline int GetCode() const{ return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
60 inline InstanceState& WithCode(int value) { SetCode(value); return *this;}
62
64
67 inline const InstanceStateName& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const InstanceStateName& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(InstanceStateName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline InstanceState& WithName(const InstanceStateName& value) { SetName(value); return *this;}
72 inline InstanceState& WithName(InstanceStateName&& value) { SetName(std::move(value)); return *this;}
74 private:
75
76 int m_code;
77 bool m_codeHasBeenSet = false;
78
79 InstanceStateName m_name;
80 bool m_nameHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SnowDeviceManagement
85} // namespace Aws
const InstanceStateName & GetName() const
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceState & WithName(const InstanceStateName &value)
InstanceState & WithName(InstanceStateName &&value)
void SetName(InstanceStateName &&value)
AWS_SNOWDEVICEMANAGEMENT_API InstanceState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API InstanceState(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API InstanceState()
void SetName(const InstanceStateName &value)
Aws::Utils::Json::JsonValue JsonValue