AWS SDK for C++  1.9.104
AWS SDK for C++
InstanceGroupStateChangeReason.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 InstanceGroupStateChangeReasonCode& GetCode() const{ return m_code; }
46 
50  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 
55  inline void SetCode(const InstanceGroupStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(InstanceGroupStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 
65  inline InstanceGroupStateChangeReason& WithCode(const InstanceGroupStateChangeReasonCode& value) { SetCode(value); return *this;}
66 
70  inline InstanceGroupStateChangeReason& WithCode(InstanceGroupStateChangeReasonCode&& 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 InstanceGroupStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102 
106  inline InstanceGroupStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 
111  inline InstanceGroupStateChangeReason& 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
Aws::EMR::Model::InstanceGroupStateChangeReason::WithMessage
InstanceGroupStateChangeReason & WithMessage(const Aws::String &value)
Definition: InstanceGroupStateChangeReason.h:101
Aws::EMR::Model::InstanceGroupStateChangeReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: InstanceGroupStateChangeReason.h:86
EMR_EXPORTS.h
Aws::EMR::Model::InstanceGroupStateChangeReason::WithCode
InstanceGroupStateChangeReason & WithCode(const InstanceGroupStateChangeReasonCode &value)
Definition: InstanceGroupStateChangeReason.h:65
Aws::EMR::Model::InstanceGroupStateChangeReason::GetCode
const InstanceGroupStateChangeReasonCode & GetCode() const
Definition: InstanceGroupStateChangeReason.h:45
Aws::EMR::Model::InstanceGroupStateChangeReason::GetMessage
const Aws::String & GetMessage() const
Definition: InstanceGroupStateChangeReason.h:76
Aws::EMR::Model::InstanceGroupStateChangeReason::WithMessage
InstanceGroupStateChangeReason & WithMessage(Aws::String &&value)
Definition: InstanceGroupStateChangeReason.h:106
Aws::EMR::Model::InstanceGroupStateChangeReason::operator=
InstanceGroupStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
InstanceGroupStateChangeReasonCode.h
Aws::EMR::Model::InstanceGroupStateChangeReason::SetCode
void SetCode(const InstanceGroupStateChangeReasonCode &value)
Definition: InstanceGroupStateChangeReason.h:55
Aws::EMR::Model::InstanceGroupStateChangeReason::InstanceGroupStateChangeReason
InstanceGroupStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceGroupStateChangeReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InstanceGroupStateChangeReason.h:50
Aws::EMR::Model::InstanceGroupStateChangeReason::WithMessage
InstanceGroupStateChangeReason & WithMessage(const char *value)
Definition: InstanceGroupStateChangeReason.h:111
Aws::EMR::Model::InstanceGroupStateChangeReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InstanceGroupStateChangeReason.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceGroupStateChangeReason::WithCode
InstanceGroupStateChangeReason & WithCode(InstanceGroupStateChangeReasonCode &&value)
Definition: InstanceGroupStateChangeReason.h:70
Aws::EMR::Model::InstanceGroupStateChangeReasonCode
InstanceGroupStateChangeReasonCode
Definition: InstanceGroupStateChangeReasonCode.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceGroupStateChangeReason::SetMessage
void SetMessage(const char *value)
Definition: InstanceGroupStateChangeReason.h:96
Aws::EMR::Model::InstanceGroupStateChangeReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceGroupStateChangeReason
Definition: InstanceGroupStateChangeReason.h:34
Aws::EMR::Model::InstanceGroupStateChangeReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: InstanceGroupStateChangeReason.h:91
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceGroupStateChangeReason::InstanceGroupStateChangeReason
InstanceGroupStateChangeReason()
Aws::EMR::Model::InstanceGroupStateChangeReason::SetCode
void SetCode(InstanceGroupStateChangeReasonCode &&value)
Definition: InstanceGroupStateChangeReason.h:60