AWS SDK for C++  1.9.17
AWS SDK for C++
StepStateChangeReason.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 
33  {
34  public:
39 
40 
45  inline const StepStateChangeReasonCode& GetCode() const{ return m_code; }
46 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
57  inline void SetCode(const StepStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
63  inline void SetCode(StepStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 
69  inline StepStateChangeReason& WithCode(const StepStateChangeReasonCode& value) { SetCode(value); return *this;}
70 
75  inline StepStateChangeReason& WithCode(StepStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
76 
77 
81  inline const Aws::String& GetMessage() const{ return m_message; }
82 
86  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
87 
91  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 
96  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
97 
101  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
102 
106  inline StepStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
107 
111  inline StepStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
112 
116  inline StepStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
117 
118  private:
119 
121  bool m_codeHasBeenSet;
122 
123  Aws::String m_message;
124  bool m_messageHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace EMR
129 } // namespace Aws
Aws::EMR::Model::StepStateChangeReason::operator=
StepStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepStateChangeReason::WithCode
StepStateChangeReason & WithCode(const StepStateChangeReasonCode &value)
Definition: StepStateChangeReason.h:69
EMR_EXPORTS.h
Aws::EMR::Model::StepStateChangeReason::GetCode
const StepStateChangeReasonCode & GetCode() const
Definition: StepStateChangeReason.h:45
Aws::EMR::Model::StepStateChangeReason::SetMessage
void SetMessage(const char *value)
Definition: StepStateChangeReason.h:101
Aws::EMR::Model::StepStateChangeReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::StepStateChangeReason::SetCode
void SetCode(const StepStateChangeReasonCode &value)
Definition: StepStateChangeReason.h:57
Aws::EMR::Model::StepStateChangeReason::SetCode
void SetCode(StepStateChangeReasonCode &&value)
Definition: StepStateChangeReason.h:63
Aws::EMR::Model::StepStateChangeReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: StepStateChangeReason.h:91
Aws::EMR::Model::StepStateChangeReasonCode
StepStateChangeReasonCode
Definition: StepStateChangeReasonCode.h:17
Aws::EMR::Model::StepStateChangeReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: StepStateChangeReason.h:96
Aws::EMR::Model::StepStateChangeReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: StepStateChangeReason.h:86
Aws::EMR::Model::StepStateChangeReason::WithMessage
StepStateChangeReason & WithMessage(const Aws::String &value)
Definition: StepStateChangeReason.h:106
Aws::EMR::Model::StepStateChangeReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: StepStateChangeReason.h:51
Aws::EMR::Model::StepStateChangeReason
Definition: StepStateChangeReason.h:33
Aws::EMR::Model::StepStateChangeReason::StepStateChangeReason
StepStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepStateChangeReason::GetMessage
const Aws::String & GetMessage() const
Definition: StepStateChangeReason.h:81
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
StepStateChangeReasonCode.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::StepStateChangeReason::WithCode
StepStateChangeReason & WithCode(StepStateChangeReasonCode &&value)
Definition: StepStateChangeReason.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::StepStateChangeReason::StepStateChangeReason
StepStateChangeReason()
Aws::EMR::Model::StepStateChangeReason::WithMessage
StepStateChangeReason & WithMessage(const char *value)
Definition: StepStateChangeReason.h:116
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::StepStateChangeReason::WithMessage
StepStateChangeReason & WithMessage(Aws::String &&value)
Definition: StepStateChangeReason.h:111