AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingPolicyStateChangeReason.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/AutoScalingPolicyStateChangeReasonCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
34 {
35 public:
40
41
43
50 inline const AutoScalingPolicyStateChangeReasonCode& GetCode() const{ return m_code; }
51 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 inline void SetCode(const AutoScalingPolicyStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
53 inline void SetCode(AutoScalingPolicyStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
57
59
63 inline const Aws::String& GetMessage() const{ return m_message; }
64 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
65 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
66 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
67 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
68 inline AutoScalingPolicyStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
69 inline AutoScalingPolicyStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
70 inline AutoScalingPolicyStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
72 private:
73
75 bool m_codeHasBeenSet = false;
76
77 Aws::String m_message;
78 bool m_messageHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EMR
83} // namespace Aws
AWS_EMR_API AutoScalingPolicyStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API AutoScalingPolicyStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingPolicyStateChangeReason & WithCode(AutoScalingPolicyStateChangeReasonCode &&value)
void SetCode(const AutoScalingPolicyStateChangeReasonCode &value)
void SetCode(AutoScalingPolicyStateChangeReasonCode &&value)
AutoScalingPolicyStateChangeReason & WithMessage(Aws::String &&value)
const AutoScalingPolicyStateChangeReasonCode & GetCode() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingPolicyStateChangeReason & WithCode(const AutoScalingPolicyStateChangeReasonCode &value)
AutoScalingPolicyStateChangeReason & WithMessage(const char *value)
AutoScalingPolicyStateChangeReason & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue