AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40
41
43
46 inline const JobFlowExecutionState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const JobFlowExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(JobFlowExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline JobFlowExecutionStatusDetail& WithState(const JobFlowExecutionState& value) { SetState(value); return *this;}
51 inline JobFlowExecutionStatusDetail& WithState(JobFlowExecutionState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
59 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
60 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
61 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
65
67
70 inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; }
71 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
72 inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
73 inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
75 inline JobFlowExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetReadyDateTime() const{ return m_readyDateTime; }
84 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
85 inline void SetReadyDateTime(const Aws::Utils::DateTime& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = value; }
86 inline void SetReadyDateTime(Aws::Utils::DateTime&& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = std::move(value); }
88 inline JobFlowExecutionStatusDetail& WithReadyDateTime(Aws::Utils::DateTime&& value) { SetReadyDateTime(std::move(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
96 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
97 inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
98 inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
100 inline JobFlowExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
108 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
109 inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
110 inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); }
111 inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
114 inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
116 private:
117
118 JobFlowExecutionState m_state;
119 bool m_stateHasBeenSet = false;
120
121 Aws::Utils::DateTime m_creationDateTime;
122 bool m_creationDateTimeHasBeenSet = false;
123
124 Aws::Utils::DateTime m_startDateTime;
125 bool m_startDateTimeHasBeenSet = false;
126
127 Aws::Utils::DateTime m_readyDateTime;
128 bool m_readyDateTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_endDateTime;
131 bool m_endDateTimeHasBeenSet = false;
132
133 Aws::String m_lastStateChangeReason;
134 bool m_lastStateChangeReasonHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EMR
139} // namespace Aws
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
JobFlowExecutionStatusDetail & WithState(JobFlowExecutionState &&value)
JobFlowExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
void SetEndDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
JobFlowExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const char *value)
void SetStartDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_EMR_API JobFlowExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
JobFlowExecutionStatusDetail & WithReadyDateTime(Aws::Utils::DateTime &&value)
void SetState(const JobFlowExecutionState &value)
AWS_EMR_API JobFlowExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
JobFlowExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
void SetReadyDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartDateTime() const
JobFlowExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
JobFlowExecutionStatusDetail & WithState(const JobFlowExecutionState &value)
JobFlowExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithReadyDateTime(const Aws::Utils::DateTime &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetReadyDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue