AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
StackError.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
33 {
34 public:
39
40
44 inline const StackErrorCode& GetErrorCode() const{ return m_errorCode; }
45
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50
54 inline void SetErrorCode(const StackErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
55
59 inline void SetErrorCode(StackErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
60
64 inline StackError& WithErrorCode(const StackErrorCode& value) { SetErrorCode(value); return *this;}
65
69 inline StackError& WithErrorCode(StackErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
70
71
75 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
76
80 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
81
85 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
86
90 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
91
95 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
96
100 inline StackError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
101
105 inline StackError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
106
110 inline StackError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
111
112 private:
113
114 StackErrorCode m_errorCode;
115 bool m_errorCodeHasBeenSet = false;
116
117 Aws::String m_errorMessage;
118 bool m_errorMessageHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace AppStream
123} // namespace Aws
#define AWS_APPSTREAM_API
void SetErrorCode(const StackErrorCode &value)
Definition: StackError.h:54
void SetErrorMessage(Aws::String &&value)
Definition: StackError.h:90
void SetErrorCode(StackErrorCode &&value)
Definition: StackError.h:59
StackError & WithErrorCode(StackErrorCode &&value)
Definition: StackError.h:69
void SetErrorMessage(const Aws::String &value)
Definition: StackError.h:85
const Aws::String & GetErrorMessage() const
Definition: StackError.h:75
AWS_APPSTREAM_API StackError(Aws::Utils::Json::JsonView jsonValue)
const StackErrorCode & GetErrorCode() const
Definition: StackError.h:44
StackError & WithErrorCode(const StackErrorCode &value)
Definition: StackError.h:64
AWS_APPSTREAM_API StackError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const char *value)
Definition: StackError.h:95
StackError & WithErrorMessage(Aws::String &&value)
Definition: StackError.h:105
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
StackError & WithErrorMessage(const Aws::String &value)
Definition: StackError.h:100
StackError & WithErrorMessage(const char *value)
Definition: StackError.h:110
AWS_APPSTREAM_API StackError()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String