AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelStepsInfo.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/CancelStepsRequestStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EMR_API CancelStepsInfo();
41
42
44
47 inline const Aws::String& GetStepId() const{ return m_stepId; }
48 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
49 inline void SetStepId(const Aws::String& value) { m_stepIdHasBeenSet = true; m_stepId = value; }
50 inline void SetStepId(Aws::String&& value) { m_stepIdHasBeenSet = true; m_stepId = std::move(value); }
51 inline void SetStepId(const char* value) { m_stepIdHasBeenSet = true; m_stepId.assign(value); }
52 inline CancelStepsInfo& WithStepId(const Aws::String& value) { SetStepId(value); return *this;}
53 inline CancelStepsInfo& WithStepId(Aws::String&& value) { SetStepId(std::move(value)); return *this;}
54 inline CancelStepsInfo& WithStepId(const char* value) { SetStepId(value); return *this;}
56
58
62 inline const CancelStepsRequestStatus& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const CancelStepsRequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(CancelStepsRequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline CancelStepsInfo& WithStatus(const CancelStepsRequestStatus& value) { SetStatus(value); return *this;}
67 inline CancelStepsInfo& WithStatus(CancelStepsRequestStatus&& value) { SetStatus(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetReason() const{ return m_reason; }
75 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
76 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
77 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
78 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
79 inline CancelStepsInfo& WithReason(const Aws::String& value) { SetReason(value); return *this;}
80 inline CancelStepsInfo& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
81 inline CancelStepsInfo& WithReason(const char* value) { SetReason(value); return *this;}
83 private:
84
85 Aws::String m_stepId;
86 bool m_stepIdHasBeenSet = false;
87
89 bool m_statusHasBeenSet = false;
90
91 Aws::String m_reason;
92 bool m_reasonHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EMR
97} // namespace Aws
const CancelStepsRequestStatus & GetStatus() const
const Aws::String & GetStepId() const
CancelStepsInfo & WithStepId(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
CancelStepsInfo & WithReason(const char *value)
CancelStepsInfo & WithStepId(Aws::String &&value)
void SetReason(const Aws::String &value)
void SetStatus(CancelStepsRequestStatus &&value)
AWS_EMR_API CancelStepsInfo(Aws::Utils::Json::JsonView jsonValue)
void SetStepId(Aws::String &&value)
CancelStepsInfo & WithStepId(const char *value)
void SetStatus(const CancelStepsRequestStatus &value)
void SetReason(const char *value)
CancelStepsInfo & WithStatus(CancelStepsRequestStatus &&value)
AWS_EMR_API CancelStepsInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
CancelStepsInfo & WithReason(const Aws::String &value)
void SetStepId(const Aws::String &value)
void SetReason(Aws::String &&value)
void SetStepId(const char *value)
CancelStepsInfo & WithStatus(const CancelStepsRequestStatus &value)
CancelStepsInfo & WithReason(Aws::String &&value)
const Aws::String & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue