AWS SDK for C++  1.9.19
AWS SDK for C++
JobFlowExecutionStatusDetail.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const JobFlowExecutionState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const JobFlowExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(JobFlowExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline JobFlowExecutionStatusDetail& WithState(const JobFlowExecutionState& value) { SetState(value); return *this;}
66 
70  inline JobFlowExecutionStatusDetail& WithState(JobFlowExecutionState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
77 
81  inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
82 
86  inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
87 
91  inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
92 
96  inline JobFlowExecutionStatusDetail& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
97 
101  inline JobFlowExecutionStatusDetail& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
102 
103 
107  inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; }
108 
112  inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
113 
117  inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
118 
122  inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
123 
127  inline JobFlowExecutionStatusDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
128 
132  inline JobFlowExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
133 
134 
139  inline const Aws::Utils::DateTime& GetReadyDateTime() const{ return m_readyDateTime; }
140 
145  inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
146 
151  inline void SetReadyDateTime(const Aws::Utils::DateTime& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = value; }
152 
157  inline void SetReadyDateTime(Aws::Utils::DateTime&& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = std::move(value); }
158 
163  inline JobFlowExecutionStatusDetail& WithReadyDateTime(const Aws::Utils::DateTime& value) { SetReadyDateTime(value); return *this;}
164 
169  inline JobFlowExecutionStatusDetail& WithReadyDateTime(Aws::Utils::DateTime&& value) { SetReadyDateTime(std::move(value)); return *this;}
170 
171 
175  inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
176 
180  inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
181 
185  inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
186 
190  inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
191 
195  inline JobFlowExecutionStatusDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
196 
200  inline JobFlowExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
201 
202 
206  inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
207 
211  inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
212 
216  inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
217 
221  inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); }
222 
226  inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
227 
231  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(const Aws::String& value) { SetLastStateChangeReason(value); return *this;}
232 
236  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(std::move(value)); return *this;}
237 
241  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
242 
243  private:
244 
245  JobFlowExecutionState m_state;
246  bool m_stateHasBeenSet;
247 
248  Aws::Utils::DateTime m_creationDateTime;
249  bool m_creationDateTimeHasBeenSet;
250 
251  Aws::Utils::DateTime m_startDateTime;
252  bool m_startDateTimeHasBeenSet;
253 
254  Aws::Utils::DateTime m_readyDateTime;
255  bool m_readyDateTimeHasBeenSet;
256 
257  Aws::Utils::DateTime m_endDateTime;
258  bool m_endDateTimeHasBeenSet;
259 
260  Aws::String m_lastStateChangeReason;
261  bool m_lastStateChangeReasonHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace EMR
266 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(const Aws::String &value)
Definition: JobFlowExecutionStatusDetail.h:216
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetStartDateTime
void SetStartDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:117
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetStartDateTime
void SetStartDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:122
Aws::EMR::Model::JobFlowExecutionStatusDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::JobFlowExecutionStatusDetail::JobFlowExecutionStatusDetail
JobFlowExecutionStatusDetail()
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithState
JobFlowExecutionStatusDetail & WithState(JobFlowExecutionState &&value)
Definition: JobFlowExecutionStatusDetail.h:70
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithReadyDateTime
JobFlowExecutionStatusDetail & WithReadyDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:163
EMR_EXPORTS.h
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithCreationDateTime
JobFlowExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:96
DateTime.h
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithLastStateChangeReason
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const char *value)
Definition: JobFlowExecutionStatusDetail.h:241
JobFlowExecutionState.h
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetEndDateTime
const Aws::Utils::DateTime & GetEndDateTime() const
Definition: JobFlowExecutionStatusDetail.h:175
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetLastStateChangeReason
const Aws::String & GetLastStateChangeReason() const
Definition: JobFlowExecutionStatusDetail.h:206
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(Aws::String &&value)
Definition: JobFlowExecutionStatusDetail.h:221
Aws::EMR::Model::JobFlowExecutionState
JobFlowExecutionState
Definition: JobFlowExecutionState.h:17
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetEndDateTime
void SetEndDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:190
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetCreationDateTime
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:91
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithState
JobFlowExecutionStatusDetail & WithState(const JobFlowExecutionState &value)
Definition: JobFlowExecutionStatusDetail.h:65
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetState
const JobFlowExecutionState & GetState() const
Definition: JobFlowExecutionStatusDetail.h:45
Aws::EMR::Model::JobFlowExecutionStatusDetail::EndDateTimeHasBeenSet
bool EndDateTimeHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:180
Aws::EMR::Model::JobFlowExecutionStatusDetail::ReadyDateTimeHasBeenSet
bool ReadyDateTimeHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:145
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetState
void SetState(const JobFlowExecutionState &value)
Definition: JobFlowExecutionStatusDetail.h:55
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetReadyDateTime
void SetReadyDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:151
Aws::EMR::Model::JobFlowExecutionStatusDetail::CreationDateTimeHasBeenSet
bool CreationDateTimeHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:81
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithLastStateChangeReason
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
Definition: JobFlowExecutionStatusDetail.h:231
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetReadyDateTime
void SetReadyDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:157
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(const char *value)
Definition: JobFlowExecutionStatusDetail.h:226
Aws::EMR::Model::JobFlowExecutionStatusDetail::StateHasBeenSet
bool StateHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:50
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithCreationDateTime
JobFlowExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:101
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithEndDateTime
JobFlowExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:200
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetCreationDateTime
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition: JobFlowExecutionStatusDetail.h:76
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetStartDateTime
const Aws::Utils::DateTime & GetStartDateTime() const
Definition: JobFlowExecutionStatusDetail.h:107
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetState
void SetState(JobFlowExecutionState &&value)
Definition: JobFlowExecutionStatusDetail.h:60
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::JobFlowExecutionStatusDetail::GetReadyDateTime
const Aws::Utils::DateTime & GetReadyDateTime() const
Definition: JobFlowExecutionStatusDetail.h:139
AWSString.h
Aws::EMR::Model::JobFlowExecutionStatusDetail::JobFlowExecutionStatusDetail
JobFlowExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::JobFlowExecutionStatusDetail::LastStateChangeReasonHasBeenSet
bool LastStateChangeReasonHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:211
Aws::EMR::Model::JobFlowExecutionStatusDetail::operator=
JobFlowExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithEndDateTime
JobFlowExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:195
Aws::EMR::Model::JobFlowExecutionStatusDetail
Definition: JobFlowExecutionStatusDetail.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithStartDateTime
JobFlowExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithLastStateChangeReason
JobFlowExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
Definition: JobFlowExecutionStatusDetail.h:236
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetEndDateTime
void SetEndDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:185
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithStartDateTime
JobFlowExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:127
Aws::EMR::Model::JobFlowExecutionStatusDetail::SetCreationDateTime
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition: JobFlowExecutionStatusDetail.h:86
Aws::EMR::Model::JobFlowExecutionStatusDetail::StartDateTimeHasBeenSet
bool StartDateTimeHasBeenSet() const
Definition: JobFlowExecutionStatusDetail.h:112
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::JobFlowExecutionStatusDetail::WithReadyDateTime
JobFlowExecutionStatusDetail & WithReadyDateTime(Aws::Utils::DateTime &&value)
Definition: JobFlowExecutionStatusDetail.h:169