AWS SDK for C++  1.9.19
AWS SDK for C++
ClusterStateChangeReason.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 
34  {
35  public:
40 
41 
45  inline const ClusterStateChangeReasonCode& GetCode() const{ return m_code; }
46 
50  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 
55  inline void SetCode(const ClusterStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(ClusterStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 
65  inline ClusterStateChangeReason& WithCode(const ClusterStateChangeReasonCode& value) { SetCode(value); return *this;}
66 
70  inline ClusterStateChangeReason& WithCode(ClusterStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetMessage() const{ return m_message; }
77 
81  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 
86  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87 
91  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
92 
96  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
97 
101  inline ClusterStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102 
106  inline ClusterStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 
111  inline ClusterStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
112 
113  private:
114 
116  bool m_codeHasBeenSet;
117 
118  Aws::String m_message;
119  bool m_messageHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace EMR
124 } // namespace Aws
ClusterStateChangeReasonCode.h
Aws::EMR::Model::ClusterStateChangeReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
EMR_EXPORTS.h
Aws::EMR::Model::ClusterStateChangeReason::WithMessage
ClusterStateChangeReason & WithMessage(const char *value)
Definition: ClusterStateChangeReason.h:111
Aws::EMR::Model::ClusterStateChangeReason::WithMessage
ClusterStateChangeReason & WithMessage(const Aws::String &value)
Definition: ClusterStateChangeReason.h:101
Aws::EMR::Model::ClusterStateChangeReason::WithCode
ClusterStateChangeReason & WithCode(ClusterStateChangeReasonCode &&value)
Definition: ClusterStateChangeReason.h:70
Aws::EMR::Model::ClusterStateChangeReason::SetMessage
void SetMessage(const char *value)
Definition: ClusterStateChangeReason.h:96
Aws::EMR::Model::ClusterStateChangeReason::ClusterStateChangeReason
ClusterStateChangeReason()
Aws::EMR::Model::ClusterStateChangeReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: ClusterStateChangeReason.h:91
Aws::EMR::Model::ClusterStateChangeReason::SetCode
void SetCode(ClusterStateChangeReasonCode &&value)
Definition: ClusterStateChangeReason.h:60
Aws::EMR::Model::ClusterStateChangeReason::GetCode
const ClusterStateChangeReasonCode & GetCode() const
Definition: ClusterStateChangeReason.h:45
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::ClusterStateChangeReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ClusterStateChangeReason.h:50
Aws::EMR::Model::ClusterStateChangeReason::SetCode
void SetCode(const ClusterStateChangeReasonCode &value)
Definition: ClusterStateChangeReason.h:55
Aws::EMR::Model::ClusterStateChangeReason::GetMessage
const Aws::String & GetMessage() const
Definition: ClusterStateChangeReason.h:76
Aws::EMR::Model::ClusterStateChangeReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: ClusterStateChangeReason.h:86
Aws::EMR::Model::ClusterStateChangeReason
Definition: ClusterStateChangeReason.h:34
Aws::EMR::Model::ClusterStateChangeReason::WithCode
ClusterStateChangeReason & WithCode(const ClusterStateChangeReasonCode &value)
Definition: ClusterStateChangeReason.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ClusterStateChangeReason::operator=
ClusterStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ClusterStateChangeReason::WithMessage
ClusterStateChangeReason & WithMessage(Aws::String &&value)
Definition: ClusterStateChangeReason.h:106
Aws::EMR::Model::ClusterStateChangeReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ClusterStateChangeReason.h:81
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ClusterStateChangeReason::ClusterStateChangeReason
ClusterStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ClusterStateChangeReasonCode
ClusterStateChangeReasonCode
Definition: ClusterStateChangeReasonCode.h:17