AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStateChangeReason.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/InstanceStateChangeReasonCode.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
46 inline const InstanceStateChangeReasonCode& GetCode() const{ return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(const InstanceStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(InstanceStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline InstanceStateChangeReason& WithCode(const InstanceStateChangeReasonCode& value) { SetCode(value); return *this;}
51 inline InstanceStateChangeReason& WithCode(InstanceStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline InstanceStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline InstanceStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline InstanceStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
67 private:
68
70 bool m_codeHasBeenSet = false;
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EMR
78} // namespace Aws
InstanceStateChangeReason & WithMessage(const char *value)
InstanceStateChangeReason & WithCode(InstanceStateChangeReasonCode &&value)
void SetCode(InstanceStateChangeReasonCode &&value)
AWS_EMR_API InstanceStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCode(const InstanceStateChangeReasonCode &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceStateChangeReason & WithMessage(Aws::String &&value)
const InstanceStateChangeReasonCode & GetCode() const
InstanceStateChangeReason & WithMessage(const Aws::String &value)
AWS_EMR_API InstanceStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
InstanceStateChangeReason & WithCode(const InstanceStateChangeReasonCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue