AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
InstanceTimeline.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
28 public:
29 AWS_EMR_API InstanceTimeline() = default;
33
35
38 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
39 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
40 template <typename CreationDateTimeT = Aws::Utils::DateTime>
41 void SetCreationDateTime(CreationDateTimeT&& value) {
42 m_creationDateTimeHasBeenSet = true;
43 m_creationDateTime = std::forward<CreationDateTimeT>(value);
44 }
45 template <typename CreationDateTimeT = Aws::Utils::DateTime>
46 InstanceTimeline& WithCreationDateTime(CreationDateTimeT&& value) {
47 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetReadyDateTime() const { return m_readyDateTime; }
57 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
58 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
59 void SetReadyDateTime(ReadyDateTimeT&& value) {
60 m_readyDateTimeHasBeenSet = true;
61 m_readyDateTime = std::forward<ReadyDateTimeT>(value);
62 }
63 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
64 InstanceTimeline& WithReadyDateTime(ReadyDateTimeT&& value) {
65 SetReadyDateTime(std::forward<ReadyDateTimeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
75 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
76 template <typename EndDateTimeT = Aws::Utils::DateTime>
77 void SetEndDateTime(EndDateTimeT&& value) {
78 m_endDateTimeHasBeenSet = true;
79 m_endDateTime = std::forward<EndDateTimeT>(value);
80 }
81 template <typename EndDateTimeT = Aws::Utils::DateTime>
82 InstanceTimeline& WithEndDateTime(EndDateTimeT&& value) {
83 SetEndDateTime(std::forward<EndDateTimeT>(value));
84 return *this;
85 }
87 private:
88 Aws::Utils::DateTime m_creationDateTime{};
89
90 Aws::Utils::DateTime m_readyDateTime{};
91
92 Aws::Utils::DateTime m_endDateTime{};
93 bool m_creationDateTimeHasBeenSet = false;
94 bool m_readyDateTimeHasBeenSet = false;
95 bool m_endDateTimeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EMR
100} // namespace Aws
const Aws::Utils::DateTime & GetEndDateTime() const
AWS_EMR_API InstanceTimeline()=default
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceTimeline & WithCreationDateTime(CreationDateTimeT &&value)
AWS_EMR_API InstanceTimeline(Aws::Utils::Json::JsonView jsonValue)
void SetReadyDateTime(ReadyDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
InstanceTimeline & WithReadyDateTime(ReadyDateTimeT &&value)
InstanceTimeline & WithEndDateTime(EndDateTimeT &&value)
const Aws::Utils::DateTime & GetReadyDateTime() const
void SetEndDateTime(EndDateTimeT &&value)
AWS_EMR_API InstanceTimeline & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue