AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CanaryRunTimeline.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Synthetics {
20namespace Model {
21
29 public:
30 AWS_SYNTHETICS_API CanaryRunTimeline() = default;
31 AWS_SYNTHETICS_API CanaryRunTimeline(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
40 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
41 template <typename StartedT = Aws::Utils::DateTime>
42 void SetStarted(StartedT&& value) {
43 m_startedHasBeenSet = true;
44 m_started = std::forward<StartedT>(value);
45 }
46 template <typename StartedT = Aws::Utils::DateTime>
47 CanaryRunTimeline& WithStarted(StartedT&& value) {
48 SetStarted(std::forward<StartedT>(value));
49 return *this;
50 }
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) {
61 m_completedHasBeenSet = true;
62 m_completed = std::forward<CompletedT>(value);
63 }
64 template <typename CompletedT = Aws::Utils::DateTime>
65 CanaryRunTimeline& WithCompleted(CompletedT&& value) {
66 SetCompleted(std::forward<CompletedT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetMetricTimestampForRunAndRetries() const { return m_metricTimestampForRunAndRetries; }
76 inline bool MetricTimestampForRunAndRetriesHasBeenSet() const { return m_metricTimestampForRunAndRetriesHasBeenSet; }
77 template <typename MetricTimestampForRunAndRetriesT = Aws::Utils::DateTime>
78 void SetMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT&& value) {
79 m_metricTimestampForRunAndRetriesHasBeenSet = true;
80 m_metricTimestampForRunAndRetries = std::forward<MetricTimestampForRunAndRetriesT>(value);
81 }
82 template <typename MetricTimestampForRunAndRetriesT = Aws::Utils::DateTime>
83 CanaryRunTimeline& WithMetricTimestampForRunAndRetries(MetricTimestampForRunAndRetriesT&& value) {
84 SetMetricTimestampForRunAndRetries(std::forward<MetricTimestampForRunAndRetriesT>(value));
85 return *this;
86 }
88 private:
89 Aws::Utils::DateTime m_started{};
90 bool m_startedHasBeenSet = false;
91
92 Aws::Utils::DateTime m_completed{};
93 bool m_completedHasBeenSet = false;
94
95 Aws::Utils::DateTime m_metricTimestampForRunAndRetries{};
96 bool m_metricTimestampForRunAndRetriesHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Synthetics
101} // 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