AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StepExecutionStatusDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/StepExecutionState.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 StepExecutionState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const StepExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(StepExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline StepExecutionStatusDetail& WithState(const StepExecutionState& value) { SetState(value); return *this;}
51 inline StepExecutionStatusDetail& WithState(StepExecutionState&& 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 StepExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
83 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
84 inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
85 inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
87 inline StepExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
95 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
96 inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
97 inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); }
98 inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
101 inline StepExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
103 private:
104
105 StepExecutionState m_state;
106 bool m_stateHasBeenSet = false;
107
108 Aws::Utils::DateTime m_creationDateTime;
109 bool m_creationDateTimeHasBeenSet = false;
110
111 Aws::Utils::DateTime m_startDateTime;
112 bool m_startDateTimeHasBeenSet = false;
113
114 Aws::Utils::DateTime m_endDateTime;
115 bool m_endDateTimeHasBeenSet = false;
116
117 Aws::String m_lastStateChangeReason;
118 bool m_lastStateChangeReasonHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EMR
123} // namespace Aws
void SetCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartDateTime() const
AWS_EMR_API StepExecutionStatusDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationDateTime() const
StepExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
StepExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
void SetLastStateChangeReason(const Aws::String &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
StepExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
void SetState(const StepExecutionState &value)
StepExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
void SetStartDateTime(const Aws::Utils::DateTime &value)
StepExecutionStatusDetail & WithState(StepExecutionState &&value)
AWS_EMR_API StepExecutionStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndDateTime(const Aws::Utils::DateTime &value)
void SetEndDateTime(Aws::Utils::DateTime &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
StepExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
StepExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
void SetStartDateTime(Aws::Utils::DateTime &&value)
StepExecutionStatusDetail & WithState(const StepExecutionState &value)
StepExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
StepExecutionStatusDetail & WithLastStateChangeReason(const char *value)
StepExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue