AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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