AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecutionStatus.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AnomalyDetectionTaskStatus.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 LookoutMetrics
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LOOKOUTMETRICS_API ExecutionStatus();
36 AWS_LOOKOUTMETRICS_API ExecutionStatus(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOOKOUTMETRICS_API ExecutionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTimestamp() const{ return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
48 inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
49 inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); }
50 inline ExecutionStatus& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;}
51 inline ExecutionStatus& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;}
52 inline ExecutionStatus& WithTimestamp(const char* value) { SetTimestamp(value); return *this;}
54
56
59 inline const AnomalyDetectionTaskStatus& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const AnomalyDetectionTaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(AnomalyDetectionTaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline ExecutionStatus& WithStatus(const AnomalyDetectionTaskStatus& value) { SetStatus(value); return *this;}
64 inline ExecutionStatus& WithStatus(AnomalyDetectionTaskStatus&& value) { SetStatus(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
72 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
73 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
74 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
75 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
76 inline ExecutionStatus& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
77 inline ExecutionStatus& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
78 inline ExecutionStatus& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
80 private:
81
82 Aws::String m_timestamp;
83 bool m_timestampHasBeenSet = false;
84
86 bool m_statusHasBeenSet = false;
87
88 Aws::String m_failureReason;
89 bool m_failureReasonHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace LookoutMetrics
94} // namespace Aws
const Aws::String & GetFailureReason() const
void SetTimestamp(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const AnomalyDetectionTaskStatus &value)
ExecutionStatus & WithStatus(const AnomalyDetectionTaskStatus &value)
AWS_LOOKOUTMETRICS_API ExecutionStatus()
AWS_LOOKOUTMETRICS_API ExecutionStatus(Aws::Utils::Json::JsonView jsonValue)
ExecutionStatus & WithTimestamp(Aws::String &&value)
ExecutionStatus & WithFailureReason(const Aws::String &value)
ExecutionStatus & WithTimestamp(const Aws::String &value)
void SetStatus(AnomalyDetectionTaskStatus &&value)
ExecutionStatus & WithFailureReason(Aws::String &&value)
ExecutionStatus & WithTimestamp(const char *value)
void SetFailureReason(const Aws::String &value)
AWS_LOOKOUTMETRICS_API ExecutionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionStatus & WithFailureReason(const char *value)
ExecutionStatus & WithStatus(AnomalyDetectionTaskStatus &&value)
const AnomalyDetectionTaskStatus & GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue