AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
TestRunSourceEventDetail.h
1
6#pragma once
7#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
8#include <aws/resiliencehubv2/model/AlarmStateChangeDetail.h>
9#include <aws/resiliencehubv2/model/TestRunSourceEventError.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 TestRunSourceEventDetail() = default;
32 AWS_RESILIENCEHUBV2_API TestRunSourceEventDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AlarmStateChangeDetail& GetAlarmStateChange() const { return m_alarmStateChange; }
41 inline bool AlarmStateChangeHasBeenSet() const { return m_alarmStateChangeHasBeenSet; }
42 template <typename AlarmStateChangeT = AlarmStateChangeDetail>
43 void SetAlarmStateChange(AlarmStateChangeT&& value) {
44 m_alarmStateChangeHasBeenSet = true;
45 m_alarmStateChange = std::forward<AlarmStateChangeT>(value);
46 }
47 template <typename AlarmStateChangeT = AlarmStateChangeDetail>
48 TestRunSourceEventDetail& WithAlarmStateChange(AlarmStateChangeT&& value) {
49 SetAlarmStateChange(std::forward<AlarmStateChangeT>(value));
50 return *this;
51 }
53
55
58 inline const TestRunSourceEventError& GetError() const { return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 template <typename ErrorT = TestRunSourceEventError>
61 void SetError(ErrorT&& value) {
62 m_errorHasBeenSet = true;
63 m_error = std::forward<ErrorT>(value);
64 }
65 template <typename ErrorT = TestRunSourceEventError>
67 SetError(std::forward<ErrorT>(value));
68 return *this;
69 }
71 private:
72 AlarmStateChangeDetail m_alarmStateChange;
73
75 bool m_alarmStateChangeHasBeenSet = false;
76 bool m_errorHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace resiliencehubv2
81} // namespace Aws
AWS_RESILIENCEHUBV2_API TestRunSourceEventDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunSourceEventDetail & WithError(ErrorT &&value)
AWS_RESILIENCEHUBV2_API TestRunSourceEventDetail()=default
TestRunSourceEventDetail & WithAlarmStateChange(AlarmStateChangeT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const AlarmStateChangeDetail & GetAlarmStateChange() const
AWS_RESILIENCEHUBV2_API TestRunSourceEventDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue