AWS SDK for C++  1.8.126
AWS SDK for C++
InstanceFleetStateChangeReason.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 InstanceFleetStateChangeReasonCode& GetCode() const{ return m_code; }
47 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
56  inline void SetCode(const InstanceFleetStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
57 
61  inline void SetCode(InstanceFleetStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
62 
66  inline InstanceFleetStateChangeReason& WithCode(const InstanceFleetStateChangeReasonCode& value) { SetCode(value); return *this;}
67 
71  inline InstanceFleetStateChangeReason& WithCode(InstanceFleetStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetMessage() const{ return m_message; }
78 
82  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 
87  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
88 
92  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
93 
97  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
98 
102  inline InstanceFleetStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
103 
107  inline InstanceFleetStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
108 
112  inline InstanceFleetStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
113 
114  private:
115 
117  bool m_codeHasBeenSet;
118 
119  Aws::String m_message;
120  bool m_messageHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EMR
125 } // namespace Aws
Aws::EMR::Model::InstanceFleetStateChangeReason::GetMessage
const Aws::String & GetMessage() const
Definition: InstanceFleetStateChangeReason.h:77
Aws::EMR::Model::InstanceFleetStateChangeReasonCode
InstanceFleetStateChangeReasonCode
Definition: InstanceFleetStateChangeReasonCode.h:17
Aws::EMR::Model::InstanceFleetStateChangeReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InstanceFleetStateChangeReason.h:82
Aws::EMR::Model::InstanceFleetStateChangeReason::WithMessage
InstanceFleetStateChangeReason & WithMessage(const Aws::String &value)
Definition: InstanceFleetStateChangeReason.h:102
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleetStateChangeReason::GetCode
const InstanceFleetStateChangeReasonCode & GetCode() const
Definition: InstanceFleetStateChangeReason.h:46
Aws::EMR::Model::InstanceFleetStateChangeReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceFleetStateChangeReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: InstanceFleetStateChangeReason.h:87
Aws::EMR::Model::InstanceFleetStateChangeReason::WithMessage
InstanceFleetStateChangeReason & WithMessage(Aws::String &&value)
Definition: InstanceFleetStateChangeReason.h:107
Aws::EMR::Model::InstanceFleetStateChangeReason::operator=
InstanceFleetStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleetStateChangeReason::WithMessage
InstanceFleetStateChangeReason & WithMessage(const char *value)
Definition: InstanceFleetStateChangeReason.h:112
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::InstanceFleetStateChangeReason::WithCode
InstanceFleetStateChangeReason & WithCode(const InstanceFleetStateChangeReasonCode &value)
Definition: InstanceFleetStateChangeReason.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceFleetStateChangeReason::SetMessage
void SetMessage(const char *value)
Definition: InstanceFleetStateChangeReason.h:97
Aws::EMR::Model::InstanceFleetStateChangeReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InstanceFleetStateChangeReason.h:51
Aws::EMR::Model::InstanceFleetStateChangeReason::InstanceFleetStateChangeReason
InstanceFleetStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceFleetStateChangeReason
Definition: InstanceFleetStateChangeReason.h:35
Aws::EMR::Model::InstanceFleetStateChangeReason::WithCode
InstanceFleetStateChangeReason & WithCode(InstanceFleetStateChangeReasonCode &&value)
Definition: InstanceFleetStateChangeReason.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceFleetStateChangeReason::SetCode
void SetCode(InstanceFleetStateChangeReasonCode &&value)
Definition: InstanceFleetStateChangeReason.h:61
InstanceFleetStateChangeReasonCode.h
Aws::EMR::Model::InstanceFleetStateChangeReason::InstanceFleetStateChangeReason
InstanceFleetStateChangeReason()
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceFleetStateChangeReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: InstanceFleetStateChangeReason.h:92
Aws::EMR::Model::InstanceFleetStateChangeReason::SetCode
void SetCode(const InstanceFleetStateChangeReasonCode &value)
Definition: InstanceFleetStateChangeReason.h:56