AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SafetyLeverState.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/fis/model/SafetyLeverStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FIS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FIS_API SafetyLeverState() = default;
39
40
42
45 inline SafetyLeverStatus GetStatus() const { return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(SafetyLeverStatus value) { m_statusHasBeenSet = true; m_status = value; }
48 inline SafetyLeverState& WithStatus(SafetyLeverStatus value) { SetStatus(value); return *this;}
50
52
55 inline const Aws::String& GetReason() const { return m_reason; }
56 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
57 template<typename ReasonT = Aws::String>
58 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
59 template<typename ReasonT = Aws::String>
60 SafetyLeverState& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
62 private:
63
65 bool m_statusHasBeenSet = false;
66
67 Aws::String m_reason;
68 bool m_reasonHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace FIS
73} // namespace Aws
SafetyLeverState & WithReason(ReasonT &&value)
SafetyLeverStatus GetStatus() const
AWS_FIS_API SafetyLeverState(Aws::Utils::Json::JsonView jsonValue)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIS_API SafetyLeverState()=default
const Aws::String & GetReason() const
AWS_FIS_API SafetyLeverState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(SafetyLeverStatus value)
SafetyLeverState & WithStatus(SafetyLeverStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue