AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackError.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/StackErrorCode.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 AppStream
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPSTREAM_API StackError() = default;
36 AWS_APPSTREAM_API StackError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSTREAM_API StackError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline StackErrorCode GetErrorCode() const { return m_errorCode; }
46 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
47 inline void SetErrorCode(StackErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
48 inline StackError& WithErrorCode(StackErrorCode value) { SetErrorCode(value); return *this;}
50
52
55 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
56 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
57 template<typename ErrorMessageT = Aws::String>
58 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
59 template<typename ErrorMessageT = Aws::String>
60 StackError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
62 private:
63
65 bool m_errorCodeHasBeenSet = false;
66
67 Aws::String m_errorMessage;
68 bool m_errorMessageHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace AppStream
73} // namespace Aws
StackErrorCode GetErrorCode() const
Definition StackError.h:45
void SetErrorCode(StackErrorCode value)
Definition StackError.h:47
AWS_APPSTREAM_API StackError()=default
StackError & WithErrorMessage(ErrorMessageT &&value)
Definition StackError.h:60
StackError & WithErrorCode(StackErrorCode value)
Definition StackError.h:48
const Aws::String & GetErrorMessage() const
Definition StackError.h:55
void SetErrorMessage(ErrorMessageT &&value)
Definition StackError.h:58
AWS_APPSTREAM_API StackError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API StackError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue