AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CanaryTimeline.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 CanaryTimeline() = default;
31 AWS_SYNTHETICS_API CanaryTimeline(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SYNTHETICS_API CanaryTimeline& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
40 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
41 template <typename CreatedT = Aws::Utils::DateTime>
42 void SetCreated(CreatedT&& value) {
43 m_createdHasBeenSet = true;
44 m_created = std::forward<CreatedT>(value);
45 }
46 template <typename CreatedT = Aws::Utils::DateTime>
47 CanaryTimeline& WithCreated(CreatedT&& value) {
48 SetCreated(std::forward<CreatedT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
58 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
59 template <typename LastModifiedT = Aws::Utils::DateTime>
60 void SetLastModified(LastModifiedT&& value) {
61 m_lastModifiedHasBeenSet = true;
62 m_lastModified = std::forward<LastModifiedT>(value);
63 }
64 template <typename LastModifiedT = Aws::Utils::DateTime>
65 CanaryTimeline& WithLastModified(LastModifiedT&& value) {
66 SetLastModified(std::forward<LastModifiedT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastStarted() const { return m_lastStarted; }
76 inline bool LastStartedHasBeenSet() const { return m_lastStartedHasBeenSet; }
77 template <typename LastStartedT = Aws::Utils::DateTime>
78 void SetLastStarted(LastStartedT&& value) {
79 m_lastStartedHasBeenSet = true;
80 m_lastStarted = std::forward<LastStartedT>(value);
81 }
82 template <typename LastStartedT = Aws::Utils::DateTime>
83 CanaryTimeline& WithLastStarted(LastStartedT&& value) {
84 SetLastStarted(std::forward<LastStartedT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastStopped() const { return m_lastStopped; }
94 inline bool LastStoppedHasBeenSet() const { return m_lastStoppedHasBeenSet; }
95 template <typename LastStoppedT = Aws::Utils::DateTime>
96 void SetLastStopped(LastStoppedT&& value) {
97 m_lastStoppedHasBeenSet = true;
98 m_lastStopped = std::forward<LastStoppedT>(value);
99 }
100 template <typename LastStoppedT = Aws::Utils::DateTime>
101 CanaryTimeline& WithLastStopped(LastStoppedT&& value) {
102 SetLastStopped(std::forward<LastStoppedT>(value));
103 return *this;
104 }
106 private:
107 Aws::Utils::DateTime m_created{};
108 bool m_createdHasBeenSet = false;
109
110 Aws::Utils::DateTime m_lastModified{};
111 bool m_lastModifiedHasBeenSet = false;
112
113 Aws::Utils::DateTime m_lastStarted{};
114 bool m_lastStartedHasBeenSet = false;
115
116 Aws::Utils::DateTime m_lastStopped{};
117 bool m_lastStoppedHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Synthetics
122} // namespace Aws
AWS_SYNTHETICS_API CanaryTimeline & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreated() const
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryTimeline & WithLastModified(LastModifiedT &&value)
void SetLastStarted(LastStartedT &&value)
void SetLastModified(LastModifiedT &&value)
const Aws::Utils::DateTime & GetLastStopped() const
CanaryTimeline & WithCreated(CreatedT &&value)
const Aws::Utils::DateTime & GetLastModified() const
const Aws::Utils::DateTime & GetLastStarted() const
AWS_SYNTHETICS_API CanaryTimeline(Aws::Utils::Json::JsonView jsonValue)
CanaryTimeline & WithLastStopped(LastStoppedT &&value)
AWS_SYNTHETICS_API CanaryTimeline()=default
CanaryTimeline & WithLastStarted(LastStartedT &&value)
void SetLastStopped(LastStoppedT &&value)
Aws::Utils::Json::JsonValue JsonValue