AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ClusterTimeline.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
29 public:
30 AWS_EMR_API ClusterTimeline() = default;
34
36
39 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
40 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
41 template <typename CreationDateTimeT = Aws::Utils::DateTime>
42 void SetCreationDateTime(CreationDateTimeT&& value) {
43 m_creationDateTimeHasBeenSet = true;
44 m_creationDateTime = std::forward<CreationDateTimeT>(value);
45 }
46 template <typename CreationDateTimeT = Aws::Utils::DateTime>
47 ClusterTimeline& WithCreationDateTime(CreationDateTimeT&& value) {
48 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetReadyDateTime() const { return m_readyDateTime; }
58 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
59 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
60 void SetReadyDateTime(ReadyDateTimeT&& value) {
61 m_readyDateTimeHasBeenSet = true;
62 m_readyDateTime = std::forward<ReadyDateTimeT>(value);
63 }
64 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
65 ClusterTimeline& WithReadyDateTime(ReadyDateTimeT&& value) {
66 SetReadyDateTime(std::forward<ReadyDateTimeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
76 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
77 template <typename EndDateTimeT = Aws::Utils::DateTime>
78 void SetEndDateTime(EndDateTimeT&& value) {
79 m_endDateTimeHasBeenSet = true;
80 m_endDateTime = std::forward<EndDateTimeT>(value);
81 }
82 template <typename EndDateTimeT = Aws::Utils::DateTime>
83 ClusterTimeline& WithEndDateTime(EndDateTimeT&& value) {
84 SetEndDateTime(std::forward<EndDateTimeT>(value));
85 return *this;
86 }
88 private:
89 Aws::Utils::DateTime m_creationDateTime{};
90
91 Aws::Utils::DateTime m_readyDateTime{};
92
93 Aws::Utils::DateTime m_endDateTime{};
94 bool m_creationDateTimeHasBeenSet = false;
95 bool m_readyDateTimeHasBeenSet = false;
96 bool m_endDateTimeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace EMR
101} // namespace Aws
ClusterTimeline & WithReadyDateTime(ReadyDateTimeT &&value)
AWS_EMR_API ClusterTimeline(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndDateTime() const
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_EMR_API ClusterTimeline & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API ClusterTimeline()=default
ClusterTimeline & WithCreationDateTime(CreationDateTimeT &&value)
ClusterTimeline & WithEndDateTime(EndDateTimeT &&value)
const Aws::Utils::DateTime & GetReadyDateTime() const
void SetReadyDateTime(ReadyDateTimeT &&value)
void SetEndDateTime(EndDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue