AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExperimentState.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/ExperimentError.h>
10#include <aws/fis/model/ExperimentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FIS {
22namespace Model {
23
30 public:
31 AWS_FIS_API ExperimentState() = default;
35
37
40 inline ExperimentStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(ExperimentStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetReason() const { return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 template <typename ReasonT = Aws::String>
59 void SetReason(ReasonT&& value) {
60 m_reasonHasBeenSet = true;
61 m_reason = std::forward<ReasonT>(value);
62 }
63 template <typename ReasonT = Aws::String>
64 ExperimentState& WithReason(ReasonT&& value) {
65 SetReason(std::forward<ReasonT>(value));
66 return *this;
67 }
69
71
75 inline const ExperimentError& GetError() const { return m_error; }
76 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
77 template <typename ErrorT = ExperimentError>
78 void SetError(ErrorT&& value) {
79 m_errorHasBeenSet = true;
80 m_error = std::forward<ErrorT>(value);
81 }
82 template <typename ErrorT = ExperimentError>
83 ExperimentState& WithError(ErrorT&& value) {
84 SetError(std::forward<ErrorT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_reason;
92
93 ExperimentError m_error;
94 bool m_statusHasBeenSet = false;
95 bool m_reasonHasBeenSet = false;
96 bool m_errorHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace FIS
101} // namespace Aws
void SetStatus(ExperimentStatus value)
const Aws::String & GetReason() const
AWS_FIS_API ExperimentState()=default
ExperimentState & WithError(ErrorT &&value)
AWS_FIS_API ExperimentState(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ReasonT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIS_API ExperimentState & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentStatus GetStatus() const
ExperimentState & WithReason(ReasonT &&value)
const ExperimentError & GetError() const
ExperimentState & WithStatus(ExperimentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue