AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExperimentState.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/fis/model/ExperimentStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fis/model/ExperimentError.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FIS
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_FIS_API ExperimentState();
40
41
43
46 inline const ExperimentStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const ExperimentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(ExperimentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline ExperimentState& WithStatus(const ExperimentStatus& value) { SetStatus(value); return *this;}
51 inline ExperimentState& WithStatus(ExperimentStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetReason() const{ return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
62 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
63 inline ExperimentState& WithReason(const Aws::String& value) { SetReason(value); return *this;}
64 inline ExperimentState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
65 inline ExperimentState& WithReason(const char* value) { SetReason(value); return *this;}
67
69
73 inline const ExperimentError& GetError() const{ return m_error; }
74 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
75 inline void SetError(const ExperimentError& value) { m_errorHasBeenSet = true; m_error = value; }
76 inline void SetError(ExperimentError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
77 inline ExperimentState& WithError(const ExperimentError& value) { SetError(value); return *this;}
78 inline ExperimentState& WithError(ExperimentError&& value) { SetError(std::move(value)); return *this;}
80 private:
81
82 ExperimentStatus m_status;
83 bool m_statusHasBeenSet = false;
84
85 Aws::String m_reason;
86 bool m_reasonHasBeenSet = false;
87
88 ExperimentError m_error;
89 bool m_errorHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace FIS
94} // namespace Aws
void SetStatus(const ExperimentStatus &value)
void SetStatus(ExperimentStatus &&value)
const Aws::String & GetReason() const
void SetError(const ExperimentError &value)
ExperimentState & WithReason(const Aws::String &value)
void SetReason(const Aws::String &value)
ExperimentState & WithStatus(const ExperimentStatus &value)
void SetReason(Aws::String &&value)
const ExperimentStatus & GetStatus() const
AWS_FIS_API ExperimentState(Aws::Utils::Json::JsonView jsonValue)
void SetError(ExperimentError &&value)
ExperimentState & WithError(const ExperimentError &value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIS_API ExperimentState & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentState & WithStatus(ExperimentStatus &&value)
ExperimentState & WithReason(Aws::String &&value)
ExperimentState & WithReason(const char *value)
ExperimentState & WithError(ExperimentError &&value)
const ExperimentError & GetError() const
void SetReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue