AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
AlarmStateChangeDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/AlarmState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail() = default;
32 AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline AlarmState GetState() const { return m_state; }
41 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
42 inline void SetState(AlarmState value) {
43 m_stateHasBeenSet = true;
44 m_state = value;
45 }
47 SetState(value);
48 return *this;
49 }
51
53
57 inline AlarmState GetPreviousState() const { return m_previousState; }
58 inline bool PreviousStateHasBeenSet() const { return m_previousStateHasBeenSet; }
59 inline void SetPreviousState(AlarmState value) {
60 m_previousStateHasBeenSet = true;
61 m_previousState = value;
62 }
64 SetPreviousState(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetReason() const { return m_reason; }
75 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
76 template <typename ReasonT = Aws::String>
77 void SetReason(ReasonT&& value) {
78 m_reasonHasBeenSet = true;
79 m_reason = std::forward<ReasonT>(value);
80 }
81 template <typename ReasonT = Aws::String>
83 SetReason(std::forward<ReasonT>(value));
84 return *this;
85 }
87 private:
89
90 AlarmState m_previousState{AlarmState::NOT_SET};
91
92 Aws::String m_reason;
93 bool m_stateHasBeenSet = false;
94 bool m_previousStateHasBeenSet = false;
95 bool m_reasonHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace resiliencehubv2
100} // namespace Aws
AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail()=default
AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AlarmStateChangeDetail & WithState(AlarmState value)
AlarmStateChangeDetail & WithPreviousState(AlarmState value)
AWS_RESILIENCEHUBV2_API AlarmStateChangeDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmStateChangeDetail & WithReason(ReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue