AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
JobFlowExecutionStatusDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/JobFlowExecutionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
30 public:
31 AWS_EMR_API JobFlowExecutionStatusDetail() = default;
35
37
40 inline JobFlowExecutionState GetState() const { return m_state; }
41 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
42 inline void SetState(JobFlowExecutionState value) {
43 m_stateHasBeenSet = true;
44 m_state = value;
45 }
47 SetState(value);
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
57 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
58 template <typename CreationDateTimeT = Aws::Utils::DateTime>
59 void SetCreationDateTime(CreationDateTimeT&& value) {
60 m_creationDateTimeHasBeenSet = true;
61 m_creationDateTime = std::forward<CreationDateTimeT>(value);
62 }
63 template <typename CreationDateTimeT = Aws::Utils::DateTime>
65 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
75 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
76 template <typename StartDateTimeT = Aws::Utils::DateTime>
77 void SetStartDateTime(StartDateTimeT&& value) {
78 m_startDateTimeHasBeenSet = true;
79 m_startDateTime = std::forward<StartDateTimeT>(value);
80 }
81 template <typename StartDateTimeT = Aws::Utils::DateTime>
83 SetStartDateTime(std::forward<StartDateTimeT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Utils::DateTime& GetReadyDateTime() const { return m_readyDateTime; }
94 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
95 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
96 void SetReadyDateTime(ReadyDateTimeT&& value) {
97 m_readyDateTimeHasBeenSet = true;
98 m_readyDateTime = std::forward<ReadyDateTimeT>(value);
99 }
100 template <typename ReadyDateTimeT = Aws::Utils::DateTime>
102 SetReadyDateTime(std::forward<ReadyDateTimeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
112 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
113 template <typename EndDateTimeT = Aws::Utils::DateTime>
114 void SetEndDateTime(EndDateTimeT&& value) {
115 m_endDateTimeHasBeenSet = true;
116 m_endDateTime = std::forward<EndDateTimeT>(value);
117 }
118 template <typename EndDateTimeT = Aws::Utils::DateTime>
120 SetEndDateTime(std::forward<EndDateTimeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetLastStateChangeReason() const { return m_lastStateChangeReason; }
130 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
131 template <typename LastStateChangeReasonT = Aws::String>
132 void SetLastStateChangeReason(LastStateChangeReasonT&& value) {
133 m_lastStateChangeReasonHasBeenSet = true;
134 m_lastStateChangeReason = std::forward<LastStateChangeReasonT>(value);
135 }
136 template <typename LastStateChangeReasonT = Aws::String>
138 SetLastStateChangeReason(std::forward<LastStateChangeReasonT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::Utils::DateTime m_creationDateTime{};
146
147 Aws::Utils::DateTime m_startDateTime{};
148
149 Aws::Utils::DateTime m_readyDateTime{};
150
151 Aws::Utils::DateTime m_endDateTime{};
152
153 Aws::String m_lastStateChangeReason;
154 bool m_stateHasBeenSet = false;
155 bool m_creationDateTimeHasBeenSet = false;
156 bool m_startDateTimeHasBeenSet = false;
157 bool m_readyDateTimeHasBeenSet = false;
158 bool m_endDateTimeHasBeenSet = false;
159 bool m_lastStateChangeReasonHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace EMR
164} // namespace Aws
JobFlowExecutionStatusDetail & WithReadyDateTime(ReadyDateTimeT &&value)
JobFlowExecutionStatusDetail & WithEndDateTime(EndDateTimeT &&value)
void SetLastStateChangeReason(LastStateChangeReasonT &&value)
JobFlowExecutionStatusDetail & WithStartDateTime(StartDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
JobFlowExecutionStatusDetail & WithState(JobFlowExecutionState value)
AWS_EMR_API JobFlowExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API JobFlowExecutionStatusDetail()=default
JobFlowExecutionStatusDetail & WithLastStateChangeReason(LastStateChangeReasonT &&value)
AWS_EMR_API JobFlowExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartDateTime() const
JobFlowExecutionStatusDetail & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetReadyDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue