AWS SDK for C++  1.9.19
AWS SDK for C++
CancelStepsInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetStepId() const{ return m_stepId; }
47 
51  inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
52 
56  inline void SetStepId(const Aws::String& value) { m_stepIdHasBeenSet = true; m_stepId = value; }
57 
61  inline void SetStepId(Aws::String&& value) { m_stepIdHasBeenSet = true; m_stepId = std::move(value); }
62 
66  inline void SetStepId(const char* value) { m_stepIdHasBeenSet = true; m_stepId.assign(value); }
67 
71  inline CancelStepsInfo& WithStepId(const Aws::String& value) { SetStepId(value); return *this;}
72 
76  inline CancelStepsInfo& WithStepId(Aws::String&& value) { SetStepId(std::move(value)); return *this;}
77 
81  inline CancelStepsInfo& WithStepId(const char* value) { SetStepId(value); return *this;}
82 
83 
88  inline const CancelStepsRequestStatus& GetStatus() const{ return m_status; }
89 
94  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 
100  inline void SetStatus(const CancelStepsRequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
101 
106  inline void SetStatus(CancelStepsRequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
107 
112  inline CancelStepsInfo& WithStatus(const CancelStepsRequestStatus& value) { SetStatus(value); return *this;}
113 
118  inline CancelStepsInfo& WithStatus(CancelStepsRequestStatus&& value) { SetStatus(std::move(value)); return *this;}
119 
120 
124  inline const Aws::String& GetReason() const{ return m_reason; }
125 
129  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
130 
134  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
135 
139  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
140 
144  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
145 
149  inline CancelStepsInfo& WithReason(const Aws::String& value) { SetReason(value); return *this;}
150 
154  inline CancelStepsInfo& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
155 
159  inline CancelStepsInfo& WithReason(const char* value) { SetReason(value); return *this;}
160 
161  private:
162 
163  Aws::String m_stepId;
164  bool m_stepIdHasBeenSet;
165 
166  CancelStepsRequestStatus m_status;
167  bool m_statusHasBeenSet;
168 
169  Aws::String m_reason;
170  bool m_reasonHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EMR
175 } // namespace Aws
Aws::EMR::Model::CancelStepsInfo::WithStatus
CancelStepsInfo & WithStatus(CancelStepsRequestStatus &&value)
Definition: CancelStepsInfo.h:118
Aws::EMR::Model::CancelStepsInfo::StepIdHasBeenSet
bool StepIdHasBeenSet() const
Definition: CancelStepsInfo.h:51
Aws::EMR::Model::CancelStepsInfo::CancelStepsInfo
CancelStepsInfo()
Aws::EMR::Model::CancelStepsInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::CancelStepsInfo::SetReason
void SetReason(const char *value)
Definition: CancelStepsInfo.h:144
Aws::EMR::Model::CancelStepsInfo::WithReason
CancelStepsInfo & WithReason(const Aws::String &value)
Definition: CancelStepsInfo.h:149
EMR_EXPORTS.h
Aws::EMR::Model::CancelStepsInfo::WithStepId
CancelStepsInfo & WithStepId(Aws::String &&value)
Definition: CancelStepsInfo.h:76
CancelStepsRequestStatus.h
Aws::EMR::Model::CancelStepsInfo::WithStepId
CancelStepsInfo & WithStepId(const char *value)
Definition: CancelStepsInfo.h:81
Aws::EMR::Model::CancelStepsInfo::SetStepId
void SetStepId(const char *value)
Definition: CancelStepsInfo.h:66
Aws::EMR::Model::CancelStepsInfo::GetReason
const Aws::String & GetReason() const
Definition: CancelStepsInfo.h:124
Aws::EMR::Model::CancelStepsInfo::SetReason
void SetReason(const Aws::String &value)
Definition: CancelStepsInfo.h:134
Aws::EMR::Model::CancelStepsInfo::WithStatus
CancelStepsInfo & WithStatus(const CancelStepsRequestStatus &value)
Definition: CancelStepsInfo.h:112
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::CancelStepsInfo::SetReason
void SetReason(Aws::String &&value)
Definition: CancelStepsInfo.h:139
Aws::EMR::Model::CancelStepsInfo::GetStatus
const CancelStepsRequestStatus & GetStatus() const
Definition: CancelStepsInfo.h:88
Aws::EMR::Model::CancelStepsInfo::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: CancelStepsInfo.h:129
Aws::EMR::Model::CancelStepsInfo::CancelStepsInfo
CancelStepsInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::CancelStepsInfo::SetStatus
void SetStatus(CancelStepsRequestStatus &&value)
Definition: CancelStepsInfo.h:106
Aws::EMR::Model::CancelStepsRequestStatus
CancelStepsRequestStatus
Definition: CancelStepsRequestStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::CancelStepsInfo::WithStepId
CancelStepsInfo & WithStepId(const Aws::String &value)
Definition: CancelStepsInfo.h:71
Aws::EMR::Model::CancelStepsInfo::SetStepId
void SetStepId(Aws::String &&value)
Definition: CancelStepsInfo.h:61
Aws::EMR::Model::CancelStepsInfo::operator=
CancelStepsInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::CancelStepsInfo::SetStatus
void SetStatus(const CancelStepsRequestStatus &value)
Definition: CancelStepsInfo.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::CancelStepsInfo::SetStepId
void SetStepId(const Aws::String &value)
Definition: CancelStepsInfo.h:56
Aws::EMR::Model::CancelStepsInfo
Definition: CancelStepsInfo.h:35
Aws::EMR::Model::CancelStepsInfo::WithReason
CancelStepsInfo & WithReason(const char *value)
Definition: CancelStepsInfo.h:159
Aws::EMR::Model::CancelStepsInfo::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CancelStepsInfo.h:94
Aws::EMR::Model::CancelStepsInfo::WithReason
CancelStepsInfo & WithReason(Aws::String &&value)
Definition: CancelStepsInfo.h:154
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::CancelStepsInfo::GetStepId
const Aws::String & GetStepId() const
Definition: CancelStepsInfo.h:46