AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryRunTimeline.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Synthetics
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SYNTHETICS_API CanaryRunTimeline() = default;
36 AWS_SYNTHETICS_API CanaryRunTimeline(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
46 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
47 template<typename StartedT = Aws::Utils::DateTime>
48 void SetStarted(StartedT&& value) { m_startedHasBeenSet = true; m_started = std::forward<StartedT>(value); }
49 template<typename StartedT = Aws::Utils::DateTime>
50 CanaryRunTimeline& WithStarted(StartedT&& value) { SetStarted(std::forward<StartedT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCompleted() const { return m_completed; }
58 inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; }
59 template<typename CompletedT = Aws::Utils::DateTime>
60 void SetCompleted(CompletedT&& value) { m_completedHasBeenSet = true; m_completed = std::forward<CompletedT>(value); }
61 template<typename CompletedT = Aws::Utils::DateTime>
62 CanaryRunTimeline& WithCompleted(CompletedT&& value) { SetCompleted(std::forward<CompletedT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetMetricTimestampForRunAndRetries() const { return m_metricTimestampForRunAndRetries; }
70 inline bool MetricTimestampForRunAndRetriesHasBeenSet() const { return m_metricTimestampForRunAndRetriesHasBeenSet; }
71 template<typename MetricTimestampForRunAndRetriesT = Aws::Utils::DateTime>
72 void SetMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT&& value) { m_metricTimestampForRunAndRetriesHasBeenSet = true; m_metricTimestampForRunAndRetries = std::forward<MetricTimestampForRunAndRetriesT>(value); }
73 template<typename MetricTimestampForRunAndRetriesT = Aws::Utils::DateTime>
74 CanaryRunTimeline& WithMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT&& value) { SetMetricTimestampForRunAndRetries(std::forward<MetricTimestampForRunAndRetriesT>(value)); return *this;}
76 private:
77
78 Aws::Utils::DateTime m_started{};
79 bool m_startedHasBeenSet = false;
80
81 Aws::Utils::DateTime m_completed{};
82 bool m_completedHasBeenSet = false;
83
84 Aws::Utils::DateTime m_metricTimestampForRunAndRetries{};
85 bool m_metricTimestampForRunAndRetriesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Synthetics
90} // namespace Aws
void SetMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT &&value)
AWS_SYNTHETICS_API CanaryRunTimeline & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SYNTHETICS_API CanaryRunTimeline(Aws::Utils::Json::JsonView jsonValue)
CanaryRunTimeline & WithCompleted(CompletedT &&value)
const Aws::Utils::DateTime & GetCompleted() const
CanaryRunTimeline & WithStarted(StartedT &&value)
const Aws::Utils::DateTime & GetStarted() const
const Aws::Utils::DateTime & GetMetricTimestampForRunAndRetries() const
AWS_SYNTHETICS_API CanaryRunTimeline()=default
CanaryRunTimeline & WithMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT &&value)
Aws::Utils::Json::JsonValue JsonValue