AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const SafetyLeverStatus& GetStatus() const{ return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(const SafetyLeverStatus& value) { m_statusHasBeenSet = true; m_status = value; }
48 inline void SetStatus(SafetyLeverStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
49 inline SafetyLeverState& WithStatus(const SafetyLeverStatus& value) { SetStatus(value); return *this;}
50 inline SafetyLeverState& WithStatus(SafetyLeverStatus&& value) { SetStatus(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetReason() const{ return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
61 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
62 inline SafetyLeverState& WithReason(const Aws::String& value) { SetReason(value); return *this;}
63 inline SafetyLeverState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
64 inline SafetyLeverState& WithReason(const char* value) { SetReason(value); return *this;}
66 private:
67
68 SafetyLeverStatus m_status;
69 bool m_statusHasBeenSet = false;
70
71 Aws::String m_reason;
72 bool m_reasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace FIS
77} // namespace Aws
AWS_FIS_API SafetyLeverState(Aws::Utils::Json::JsonView jsonValue)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
SafetyLeverState & WithStatus(SafetyLeverStatus &&value)
void SetReason(const Aws::String &value)
const SafetyLeverStatus & GetStatus() const
SafetyLeverState & WithStatus(const SafetyLeverStatus &value)
SafetyLeverState & WithReason(const Aws::String &value)
const Aws::String & GetReason() const
void SetStatus(SafetyLeverStatus &&value)
void SetReason(Aws::String &&value)
SafetyLeverState & WithReason(Aws::String &&value)
void SetReason(const char *value)
SafetyLeverState & WithReason(const char *value)
AWS_FIS_API SafetyLeverState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const SafetyLeverStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue