AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StepExecutionStatusDetail.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/StepExecutionState.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 StepExecutionStatusDetail() = default;
35
37
40 inline StepExecutionState GetState() const { return m_state; }
41 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
42 inline void SetState(StepExecutionState 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>
64 StepExecutionStatusDetail& WithCreationDateTime(CreationDateTimeT&& value) {
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
92 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
93 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
94 template <typename EndDateTimeT = Aws::Utils::DateTime>
95 void SetEndDateTime(EndDateTimeT&& value) {
96 m_endDateTimeHasBeenSet = true;
97 m_endDateTime = std::forward<EndDateTimeT>(value);
98 }
99 template <typename EndDateTimeT = Aws::Utils::DateTime>
101 SetEndDateTime(std::forward<EndDateTimeT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetLastStateChangeReason() const { return m_lastStateChangeReason; }
111 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
112 template <typename LastStateChangeReasonT = Aws::String>
113 void SetLastStateChangeReason(LastStateChangeReasonT&& value) {
114 m_lastStateChangeReasonHasBeenSet = true;
115 m_lastStateChangeReason = std::forward<LastStateChangeReasonT>(value);
116 }
117 template <typename LastStateChangeReasonT = Aws::String>
118 StepExecutionStatusDetail& WithLastStateChangeReason(LastStateChangeReasonT&& value) {
119 SetLastStateChangeReason(std::forward<LastStateChangeReasonT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::Utils::DateTime m_creationDateTime{};
127
128 Aws::Utils::DateTime m_startDateTime{};
129
130 Aws::Utils::DateTime m_endDateTime{};
131
132 Aws::String m_lastStateChangeReason;
133 bool m_stateHasBeenSet = false;
134 bool m_creationDateTimeHasBeenSet = false;
135 bool m_startDateTimeHasBeenSet = false;
136 bool m_endDateTimeHasBeenSet = false;
137 bool m_lastStateChangeReasonHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace EMR
142} // namespace Aws
void SetLastStateChangeReason(LastStateChangeReasonT &&value)
StepExecutionStatusDetail & WithLastStateChangeReason(LastStateChangeReasonT &&value)
const Aws::Utils::DateTime & GetStartDateTime() const
AWS_EMR_API StepExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
StepExecutionStatusDetail & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
StepExecutionStatusDetail & WithEndDateTime(EndDateTimeT &&value)
StepExecutionStatusDetail & WithState(StepExecutionState value)
AWS_EMR_API StepExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API StepExecutionStatusDetail()=default
void SetCreationDateTime(CreationDateTimeT &&value)
StepExecutionStatusDetail & WithStartDateTime(StartDateTimeT &&value)
const Aws::Utils::DateTime & GetEndDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue