AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
JobFlowExecutionStatusDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/JobFlowExecutionState.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EMR_API JobFlowExecutionStatusDetail() = default;
40
41
43
46 inline JobFlowExecutionState GetState() const { return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(JobFlowExecutionState value) { m_stateHasBeenSet = true; m_state = value; }
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) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
60 template<typename CreationDateTimeT = Aws::Utils::DateTime>
61 JobFlowExecutionStatusDetail& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
63
65
68 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
69 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
70 template<typename StartDateTimeT = Aws::Utils::DateTime>
71 void SetStartDateTime(StartDateTimeT&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::forward<StartDateTimeT>(value); }
72 template<typename StartDateTimeT = Aws::Utils::DateTime>
73 JobFlowExecutionStatusDetail& WithStartDateTime(StartDateTimeT&& value) { SetStartDateTime(std::forward<StartDateTimeT>(value)); return *this;}
75
77
81 inline const Aws::Utils::DateTime& GetReadyDateTime() const { return m_readyDateTime; }
82 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
83 template<typename ReadyDateTimeT = Aws::Utils::DateTime>
84 void SetReadyDateTime(ReadyDateTimeT&& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = std::forward<ReadyDateTimeT>(value); }
85 template<typename ReadyDateTimeT = Aws::Utils::DateTime>
86 JobFlowExecutionStatusDetail& WithReadyDateTime(ReadyDateTimeT&& value) { SetReadyDateTime(std::forward<ReadyDateTimeT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
94 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
95 template<typename EndDateTimeT = Aws::Utils::DateTime>
96 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
97 template<typename EndDateTimeT = Aws::Utils::DateTime>
98 JobFlowExecutionStatusDetail& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
100
102
105 inline const Aws::String& GetLastStateChangeReason() const { return m_lastStateChangeReason; }
106 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
107 template<typename LastStateChangeReasonT = Aws::String>
108 void SetLastStateChangeReason(LastStateChangeReasonT&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::forward<LastStateChangeReasonT>(value); }
109 template<typename LastStateChangeReasonT = Aws::String>
110 JobFlowExecutionStatusDetail& WithLastStateChangeReason(LastStateChangeReasonT&& value) { SetLastStateChangeReason(std::forward<LastStateChangeReasonT>(value)); return *this;}
112 private:
113
115 bool m_stateHasBeenSet = false;
116
117 Aws::Utils::DateTime m_creationDateTime{};
118 bool m_creationDateTimeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_startDateTime{};
121 bool m_startDateTimeHasBeenSet = false;
122
123 Aws::Utils::DateTime m_readyDateTime{};
124 bool m_readyDateTimeHasBeenSet = false;
125
126 Aws::Utils::DateTime m_endDateTime{};
127 bool m_endDateTimeHasBeenSet = false;
128
129 Aws::String m_lastStateChangeReason;
130 bool m_lastStateChangeReasonHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace EMR
135} // 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