AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ImageStateChangeReason.h
Go to the documentation of this file.
1
6#pragma once
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 AppStream
23{
24namespace Model
25{
26
34 {
35 public:
40
41
45 inline const ImageStateChangeReasonCode& GetCode() const{ return m_code; }
46
50 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51
55 inline void SetCode(const ImageStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
56
60 inline void SetCode(ImageStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61
65 inline ImageStateChangeReason& WithCode(const ImageStateChangeReasonCode& value) { SetCode(value); return *this;}
66
70 inline ImageStateChangeReason& WithCode(ImageStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;}
71
72
76 inline const Aws::String& GetMessage() const{ return m_message; }
77
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82
86 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87
91 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
92
96 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
97
101 inline ImageStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102
106 inline ImageStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107
111 inline ImageStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;}
112
113 private:
114
116 bool m_codeHasBeenSet = false;
117
118 Aws::String m_message;
119 bool m_messageHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace AppStream
124} // namespace Aws
#define AWS_APPSTREAM_API
ImageStateChangeReason & WithMessage(const char *value)
void SetCode(const ImageStateChangeReasonCode &value)
ImageStateChangeReason & WithMessage(const Aws::String &value)
const ImageStateChangeReasonCode & GetCode() const
AWS_APPSTREAM_API ImageStateChangeReason & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
ImageStateChangeReason & WithCode(const ImageStateChangeReasonCode &value)
void SetCode(ImageStateChangeReasonCode &&value)
ImageStateChangeReason & WithMessage(Aws::String &&value)
ImageStateChangeReason & WithCode(ImageStateChangeReasonCode &&value)
AWS_APPSTREAM_API ImageStateChangeReason(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String