AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StepSummary.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/HadoopStepConfig.h>
10#include <aws/elasticmapreduce/model/ActionOnFailure.h>
11#include <aws/elasticmapreduce/model/StepStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMR
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EMR_API StepSummary() = default;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 StepSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 StepSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const HadoopStepConfig& GetConfig() const { return m_config; }
72 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
73 template<typename ConfigT = HadoopStepConfig>
74 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
75 template<typename ConfigT = HadoopStepConfig>
76 StepSummary& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
78
80
85 inline ActionOnFailure GetActionOnFailure() const { return m_actionOnFailure; }
86 inline bool ActionOnFailureHasBeenSet() const { return m_actionOnFailureHasBeenSet; }
87 inline void SetActionOnFailure(ActionOnFailure value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
88 inline StepSummary& WithActionOnFailure(ActionOnFailure value) { SetActionOnFailure(value); return *this;}
90
92
95 inline const StepStatus& GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 template<typename StatusT = StepStatus>
98 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
99 template<typename StatusT = StepStatus>
100 StepSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
102 private:
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 HadoopStepConfig m_config;
111 bool m_configHasBeenSet = false;
112
113 ActionOnFailure m_actionOnFailure{ActionOnFailure::NOT_SET};
114 bool m_actionOnFailureHasBeenSet = false;
115
116 StepStatus m_status;
117 bool m_statusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EMR
122} // namespace Aws
const Aws::String & GetId() const
Definition StepSummary.h:47
AWS_EMR_API StepSummary()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
ActionOnFailure GetActionOnFailure() const
Definition StepSummary.h:85
const StepStatus & GetStatus() const
Definition StepSummary.h:95
StepSummary & WithConfig(ConfigT &&value)
Definition StepSummary.h:76
const Aws::String & GetName() const
Definition StepSummary.h:59
void SetName(NameT &&value)
Definition StepSummary.h:62
StepSummary & WithActionOnFailure(ActionOnFailure value)
Definition StepSummary.h:88
void SetActionOnFailure(ActionOnFailure value)
Definition StepSummary.h:87
bool ActionOnFailureHasBeenSet() const
Definition StepSummary.h:86
AWS_EMR_API StepSummary(Aws::Utils::Json::JsonView jsonValue)
StepSummary & WithId(IdT &&value)
Definition StepSummary.h:52
AWS_EMR_API StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(StatusT &&value)
Definition StepSummary.h:98
void SetId(IdT &&value)
Definition StepSummary.h:50
StepSummary & WithStatus(StatusT &&value)
StepSummary & WithName(NameT &&value)
Definition StepSummary.h:64
void SetConfig(ConfigT &&value)
Definition StepSummary.h:74
const HadoopStepConfig & GetConfig() const
Definition StepSummary.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue