AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SafetyLever.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fis/model/SafetyLeverState.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 SafetyLever();
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline SafetyLever& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline SafetyLever& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline SafetyLever& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::String& GetArn() const{ return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
62 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 inline SafetyLever& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 inline SafetyLever& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
66 inline SafetyLever& WithArn(const char* value) { SetArn(value); return *this;}
68
70
73 inline const SafetyLeverState& GetState() const{ return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(const SafetyLeverState& value) { m_stateHasBeenSet = true; m_state = value; }
76 inline void SetState(SafetyLeverState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
77 inline SafetyLever& WithState(const SafetyLeverState& value) { SetState(value); return *this;}
78 inline SafetyLever& WithState(SafetyLeverState&& value) { SetState(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_id;
83 bool m_idHasBeenSet = false;
84
85 Aws::String m_arn;
86 bool m_arnHasBeenSet = false;
87
88 SafetyLeverState m_state;
89 bool m_stateHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace FIS
94} // namespace Aws
SafetyLever & WithState(const SafetyLeverState &value)
Definition SafetyLever.h:77
SafetyLever & WithId(const Aws::String &value)
Definition SafetyLever.h:50
void SetState(const SafetyLeverState &value)
Definition SafetyLever.h:75
void SetArn(const Aws::String &value)
Definition SafetyLever.h:61
AWS_FIS_API SafetyLever & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(SafetyLeverState &&value)
Definition SafetyLever.h:76
SafetyLever & WithArn(const char *value)
Definition SafetyLever.h:66
void SetId(const Aws::String &value)
Definition SafetyLever.h:47
SafetyLever & WithArn(Aws::String &&value)
Definition SafetyLever.h:65
const Aws::String & GetArn() const
Definition SafetyLever.h:59
void SetArn(Aws::String &&value)
Definition SafetyLever.h:62
const SafetyLeverState & GetState() const
Definition SafetyLever.h:73
AWS_FIS_API SafetyLever(Aws::Utils::Json::JsonView jsonValue)
SafetyLever & WithId(const char *value)
Definition SafetyLever.h:52
SafetyLever & WithId(Aws::String &&value)
Definition SafetyLever.h:51
const Aws::String & GetId() const
Definition SafetyLever.h:45
SafetyLever & WithState(SafetyLeverState &&value)
Definition SafetyLever.h:78
void SetArn(const char *value)
Definition SafetyLever.h:63
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const char *value)
Definition SafetyLever.h:49
void SetId(Aws::String &&value)
Definition SafetyLever.h:48
SafetyLever & WithArn(const Aws::String &value)
Definition SafetyLever.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue