AWS SDK for C++  1.9.44
AWS SDK for C++
AutoScalingPolicyStateChangeReason.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 
49  inline const AutoScalingPolicyStateChangeReasonCode& GetCode() const{ return m_code; }
50 
58  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 
67  inline void SetCode(const AutoScalingPolicyStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
68 
76  inline void SetCode(AutoScalingPolicyStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
77 
85  inline AutoScalingPolicyStateChangeReason& WithCode(const AutoScalingPolicyStateChangeReasonCode& value) { SetCode(value); return *this;}
86 
94  inline AutoScalingPolicyStateChangeReason& WithCode(AutoScalingPolicyStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
95 
96 
101  inline const Aws::String& GetMessage() const{ return m_message; }
102 
107  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
108 
113  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
114 
119  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
120 
125  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
126 
131  inline AutoScalingPolicyStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
132 
137  inline AutoScalingPolicyStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
138 
143  inline AutoScalingPolicyStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
144 
145  private:
146 
148  bool m_codeHasBeenSet;
149 
150  Aws::String m_message;
151  bool m_messageHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace EMR
156 } // namespace Aws
Aws::EMR::Model::AutoScalingPolicyStateChangeReason
Definition: AutoScalingPolicyStateChangeReason.h:34
Aws::EMR::Model::AutoScalingPolicyStateChangeReasonCode
AutoScalingPolicyStateChangeReasonCode
Definition: AutoScalingPolicyStateChangeReasonCode.h:17
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::WithMessage
AutoScalingPolicyStateChangeReason & WithMessage(const Aws::String &value)
Definition: AutoScalingPolicyStateChangeReason.h:131
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::WithMessage
AutoScalingPolicyStateChangeReason & WithMessage(const char *value)
Definition: AutoScalingPolicyStateChangeReason.h:143
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: AutoScalingPolicyStateChangeReason.h:58
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: AutoScalingPolicyStateChangeReason.h:119
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::SetCode
void SetCode(const AutoScalingPolicyStateChangeReasonCode &value)
Definition: AutoScalingPolicyStateChangeReason.h:67
EMR_EXPORTS.h
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::WithCode
AutoScalingPolicyStateChangeReason & WithCode(AutoScalingPolicyStateChangeReasonCode &&value)
Definition: AutoScalingPolicyStateChangeReason.h:94
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::AutoScalingPolicyStateChangeReason
AutoScalingPolicyStateChangeReason()
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::AutoScalingPolicyStateChangeReason
AutoScalingPolicyStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::GetMessage
const Aws::String & GetMessage() const
Definition: AutoScalingPolicyStateChangeReason.h:101
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::SetMessage
void SetMessage(const char *value)
Definition: AutoScalingPolicyStateChangeReason.h:125
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::operator=
AutoScalingPolicyStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::WithMessage
AutoScalingPolicyStateChangeReason & WithMessage(Aws::String &&value)
Definition: AutoScalingPolicyStateChangeReason.h:137
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::SetCode
void SetCode(AutoScalingPolicyStateChangeReasonCode &&value)
Definition: AutoScalingPolicyStateChangeReason.h:76
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: AutoScalingPolicyStateChangeReason.h:113
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::AutoScalingPolicyStateChangeReason::GetCode
const AutoScalingPolicyStateChangeReasonCode & GetCode() const
Definition: AutoScalingPolicyStateChangeReason.h:49
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: AutoScalingPolicyStateChangeReason.h:107
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::AutoScalingPolicyStateChangeReason::WithCode
AutoScalingPolicyStateChangeReason & WithCode(const AutoScalingPolicyStateChangeReasonCode &value)
Definition: AutoScalingPolicyStateChangeReason.h:85
AutoScalingPolicyStateChangeReasonCode.h
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AutoScalingPolicyStateChangeReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const