AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StepTimeline.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 StepTimeline() = 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 StepTimeline& WithCreationDateTime(CreationDateTimeT&& value) {
47 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
57 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
58 template <typename StartDateTimeT = Aws::Utils::DateTime>
59 void SetStartDateTime(StartDateTimeT&& value) {
60 m_startDateTimeHasBeenSet = true;
61 m_startDateTime = std::forward<StartDateTimeT>(value);
62 }
63 template <typename StartDateTimeT = Aws::Utils::DateTime>
64 StepTimeline& WithStartDateTime(StartDateTimeT&& value) {
65 SetStartDateTime(std::forward<StartDateTimeT>(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 StepTimeline& 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_startDateTime{};
91
92 Aws::Utils::DateTime m_endDateTime{};
93 bool m_creationDateTimeHasBeenSet = false;
94 bool m_startDateTimeHasBeenSet = false;
95 bool m_endDateTimeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EMR
100} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API StepTimeline()=default
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_EMR_API StepTimeline & operator=(Aws::Utils::Json::JsonView jsonValue)
StepTimeline & WithEndDateTime(EndDateTimeT &&value)
StepTimeline & WithStartDateTime(StartDateTimeT &&value)
const Aws::Utils::DateTime & GetEndDateTime() const
void SetStartDateTime(StartDateTimeT &&value)
const Aws::Utils::DateTime & GetStartDateTime() const
AWS_EMR_API StepTimeline(Aws::Utils::Json::JsonView jsonValue)
bool CreationDateTimeHasBeenSet() const
StepTimeline & WithCreationDateTime(CreationDateTimeT &&value)
void SetEndDateTime(EndDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
Aws::Utils::Json::JsonValue JsonValue