AWS SDK for C++  1.9.21
AWS SDK for C++
StepExecutionStatusDetail.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 StepExecutionState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const StepExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(StepExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline StepExecutionStatusDetail& WithState(const StepExecutionState& value) { SetState(value); return *this;}
66 
70  inline StepExecutionStatusDetail& WithState(StepExecutionState&& 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 StepExecutionStatusDetail& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
97 
101  inline StepExecutionStatusDetail& 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 StepExecutionStatusDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
128 
132  inline StepExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
133 
134 
138  inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
139 
143  inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
144 
148  inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
149 
153  inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
154 
158  inline StepExecutionStatusDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
159 
163  inline StepExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
164 
165 
169  inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
170 
174  inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
175 
179  inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
180 
184  inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); }
185 
189  inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
190 
194  inline StepExecutionStatusDetail& WithLastStateChangeReason(const Aws::String& value) { SetLastStateChangeReason(value); return *this;}
195 
199  inline StepExecutionStatusDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(std::move(value)); return *this;}
200 
204  inline StepExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
205 
206  private:
207 
208  StepExecutionState m_state;
209  bool m_stateHasBeenSet;
210 
211  Aws::Utils::DateTime m_creationDateTime;
212  bool m_creationDateTimeHasBeenSet;
213 
214  Aws::Utils::DateTime m_startDateTime;
215  bool m_startDateTimeHasBeenSet;
216 
217  Aws::Utils::DateTime m_endDateTime;
218  bool m_endDateTimeHasBeenSet;
219 
220  Aws::String m_lastStateChangeReason;
221  bool m_lastStateChangeReasonHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace EMR
226 } // namespace Aws
Aws::EMR::Model::StepExecutionStatusDetail::LastStateChangeReasonHasBeenSet
bool LastStateChangeReasonHasBeenSet() const
Definition: StepExecutionStatusDetail.h:174
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EMR::Model::StepExecutionStatusDetail::WithEndDateTime
StepExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:163
StepExecutionState.h
Aws::EMR::Model::StepExecutionStatusDetail
Definition: StepExecutionStatusDetail.h:34
Aws::EMR::Model::StepExecutionStatusDetail::GetState
const StepExecutionState & GetState() const
Definition: StepExecutionStatusDetail.h:45
Aws::EMR::Model::StepExecutionStatusDetail::EndDateTimeHasBeenSet
bool EndDateTimeHasBeenSet() const
Definition: StepExecutionStatusDetail.h:143
EMR_EXPORTS.h
Aws::EMR::Model::StepExecutionStatusDetail::WithCreationDateTime
StepExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:101
Aws::EMR::Model::StepExecutionState
StepExecutionState
Definition: StepExecutionState.h:17
Aws::EMR::Model::StepExecutionStatusDetail::SetState
void SetState(const StepExecutionState &value)
Definition: StepExecutionStatusDetail.h:55
Aws::EMR::Model::StepExecutionStatusDetail::operator=
StepExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::EMR::Model::StepExecutionStatusDetail::GetEndDateTime
const Aws::Utils::DateTime & GetEndDateTime() const
Definition: StepExecutionStatusDetail.h:138
Aws::EMR::Model::StepExecutionStatusDetail::WithState
StepExecutionStatusDetail & WithState(StepExecutionState &&value)
Definition: StepExecutionStatusDetail.h:70
Aws::EMR::Model::StepExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(const Aws::String &value)
Definition: StepExecutionStatusDetail.h:179
Aws::EMR::Model::StepExecutionStatusDetail::SetCreationDateTime
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:86
Aws::EMR::Model::StepExecutionStatusDetail::StepExecutionStatusDetail
StepExecutionStatusDetail()
Aws::EMR::Model::StepExecutionStatusDetail::WithEndDateTime
StepExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:158
Aws::EMR::Model::StepExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(const char *value)
Definition: StepExecutionStatusDetail.h:189
Aws::EMR::Model::StepExecutionStatusDetail::SetEndDateTime
void SetEndDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:153
Aws::EMR::Model::StepExecutionStatusDetail::WithStartDateTime
StepExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:132
Aws::EMR::Model::StepExecutionStatusDetail::GetLastStateChangeReason
const Aws::String & GetLastStateChangeReason() const
Definition: StepExecutionStatusDetail.h:169
Aws::EMR::Model::StepExecutionStatusDetail::WithLastStateChangeReason
StepExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
Definition: StepExecutionStatusDetail.h:194
Aws::EMR::Model::StepExecutionStatusDetail::SetStartDateTime
void SetStartDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:122
Aws::EMR::Model::StepExecutionStatusDetail::GetStartDateTime
const Aws::Utils::DateTime & GetStartDateTime() const
Definition: StepExecutionStatusDetail.h:107
Aws::EMR::Model::StepExecutionStatusDetail::StepExecutionStatusDetail
StepExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepExecutionStatusDetail::StateHasBeenSet
bool StateHasBeenSet() const
Definition: StepExecutionStatusDetail.h:50
Aws::EMR::Model::StepExecutionStatusDetail::SetStartDateTime
void SetStartDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:117
Aws::EMR::Model::StepExecutionStatusDetail::WithStartDateTime
StepExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:127
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::StepExecutionStatusDetail::SetLastStateChangeReason
void SetLastStateChangeReason(Aws::String &&value)
Definition: StepExecutionStatusDetail.h:184
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::StepExecutionStatusDetail::SetEndDateTime
void SetEndDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:148
Aws::EMR::Model::StepExecutionStatusDetail::CreationDateTimeHasBeenSet
bool CreationDateTimeHasBeenSet() const
Definition: StepExecutionStatusDetail.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::StepExecutionStatusDetail::WithLastStateChangeReason
StepExecutionStatusDetail & WithLastStateChangeReason(const char *value)
Definition: StepExecutionStatusDetail.h:204
Aws::EMR::Model::StepExecutionStatusDetail::SetCreationDateTime
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition: StepExecutionStatusDetail.h:91
Aws::EMR::Model::StepExecutionStatusDetail::WithCreationDateTime
StepExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition: StepExecutionStatusDetail.h:96
Aws::EMR::Model::StepExecutionStatusDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::StepExecutionStatusDetail::WithLastStateChangeReason
StepExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
Definition: StepExecutionStatusDetail.h:199
Aws::EMR::Model::StepExecutionStatusDetail::SetState
void SetState(StepExecutionState &&value)
Definition: StepExecutionStatusDetail.h:60
Aws::EMR::Model::StepExecutionStatusDetail::WithState
StepExecutionStatusDetail & WithState(const StepExecutionState &value)
Definition: StepExecutionStatusDetail.h:65
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::StepExecutionStatusDetail::GetCreationDateTime
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition: StepExecutionStatusDetail.h:76
Aws::EMR::Model::StepExecutionStatusDetail::StartDateTimeHasBeenSet
bool StartDateTimeHasBeenSet() const
Definition: StepExecutionStatusDetail.h:112