AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
SafetyLeverState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fis/FIS_EXPORTS.h>
9#include <aws/fis/model/SafetyLeverStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FIS {
21namespace Model {
22
29 public:
30 AWS_FIS_API SafetyLeverState() = default;
34
36
39 inline SafetyLeverStatus GetStatus() const { return m_status; }
40 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
41 inline void SetStatus(SafetyLeverStatus value) {
42 m_statusHasBeenSet = true;
43 m_status = value;
44 }
46 SetStatus(value);
47 return *this;
48 }
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) {
59 m_reasonHasBeenSet = true;
60 m_reason = std::forward<ReasonT>(value);
61 }
62 template <typename ReasonT = Aws::String>
63 SafetyLeverState& WithReason(ReasonT&& value) {
64 SetReason(std::forward<ReasonT>(value));
65 return *this;
66 }
68 private:
70 bool m_statusHasBeenSet = false;
71
72 Aws::String m_reason;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace FIS
78} // 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