AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryTimeline.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 CanaryTimeline() = default;
36 AWS_SYNTHETICS_API CanaryTimeline(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SYNTHETICS_API CanaryTimeline& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
46 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
47 template<typename CreatedT = Aws::Utils::DateTime>
48 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
49 template<typename CreatedT = Aws::Utils::DateTime>
50 CanaryTimeline& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
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) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
61 template<typename LastModifiedT = Aws::Utils::DateTime>
62 CanaryTimeline& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetLastStarted() const { return m_lastStarted; }
70 inline bool LastStartedHasBeenSet() const { return m_lastStartedHasBeenSet; }
71 template<typename LastStartedT = Aws::Utils::DateTime>
72 void SetLastStarted(LastStartedT&& value) { m_lastStartedHasBeenSet = true; m_lastStarted = std::forward<LastStartedT>(value); }
73 template<typename LastStartedT = Aws::Utils::DateTime>
74 CanaryTimeline& WithLastStarted(LastStartedT&& value) { SetLastStarted(std::forward<LastStartedT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetLastStopped() const { return m_lastStopped; }
82 inline bool LastStoppedHasBeenSet() const { return m_lastStoppedHasBeenSet; }
83 template<typename LastStoppedT = Aws::Utils::DateTime>
84 void SetLastStopped(LastStoppedT&& value) { m_lastStoppedHasBeenSet = true; m_lastStopped = std::forward<LastStoppedT>(value); }
85 template<typename LastStoppedT = Aws::Utils::DateTime>
86 CanaryTimeline& WithLastStopped(LastStoppedT&& value) { SetLastStopped(std::forward<LastStoppedT>(value)); return *this;}
88 private:
89
90 Aws::Utils::DateTime m_created{};
91 bool m_createdHasBeenSet = false;
92
93 Aws::Utils::DateTime m_lastModified{};
94 bool m_lastModifiedHasBeenSet = false;
95
96 Aws::Utils::DateTime m_lastStarted{};
97 bool m_lastStartedHasBeenSet = false;
98
99 Aws::Utils::DateTime m_lastStopped{};
100 bool m_lastStoppedHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Synthetics
105} // 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