AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SceneError.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/SceneErrorCode.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 IoTTwinMaker
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTTWINMAKER_API SceneError();
36 AWS_IOTTWINMAKER_API SceneError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTWINMAKER_API SceneError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const SceneErrorCode& GetCode() const{ return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(const SceneErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
48 inline void SetCode(SceneErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
49 inline SceneError& WithCode(const SceneErrorCode& value) { SetCode(value); return *this;}
50 inline SceneError& WithCode(SceneErrorCode&& value) { SetCode(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetMessage() const{ return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
60 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
61 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
62 inline SceneError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
63 inline SceneError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
64 inline SceneError& WithMessage(const char* value) { SetMessage(value); return *this;}
66 private:
67
68 SceneErrorCode m_code;
69 bool m_codeHasBeenSet = false;
70
71 Aws::String m_message;
72 bool m_messageHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoTTwinMaker
77} // namespace Aws
void SetMessage(const Aws::String &value)
Definition SceneError.h:59
AWS_IOTTWINMAKER_API SceneError & operator=(Aws::Utils::Json::JsonView jsonValue)
SceneError & WithMessage(const char *value)
Definition SceneError.h:64
AWS_IOTTWINMAKER_API SceneError()
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const char *value)
Definition SceneError.h:61
SceneError & WithMessage(const Aws::String &value)
Definition SceneError.h:62
void SetCode(const SceneErrorCode &value)
Definition SceneError.h:47
const Aws::String & GetMessage() const
Definition SceneError.h:57
SceneError & WithCode(SceneErrorCode &&value)
Definition SceneError.h:50
AWS_IOTTWINMAKER_API SceneError(Aws::Utils::Json::JsonView jsonValue)
void SetCode(SceneErrorCode &&value)
Definition SceneError.h:48
const SceneErrorCode & GetCode() const
Definition SceneError.h:45
SceneError & WithCode(const SceneErrorCode &value)
Definition SceneError.h:49
SceneError & WithMessage(Aws::String &&value)
Definition SceneError.h:63
void SetMessage(Aws::String &&value)
Definition SceneError.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue