AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const StackErrorCode& GetErrorCode() const{ return m_errorCode; }
46 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
47 inline void SetErrorCode(const StackErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
48 inline void SetErrorCode(StackErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
49 inline StackError& WithErrorCode(const StackErrorCode& value) { SetErrorCode(value); return *this;}
50 inline StackError& WithErrorCode(StackErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
58 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
59 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
60 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
61 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
62 inline StackError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
63 inline StackError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
64 inline StackError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
66 private:
67
68 StackErrorCode m_errorCode;
69 bool m_errorCodeHasBeenSet = false;
70
71 Aws::String m_errorMessage;
72 bool m_errorMessageHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace AppStream
77} // namespace Aws
void SetErrorCode(const StackErrorCode &value)
Definition StackError.h:47
void SetErrorMessage(Aws::String &&value)
Definition StackError.h:60
void SetErrorCode(StackErrorCode &&value)
Definition StackError.h:48
StackError & WithErrorCode(StackErrorCode &&value)
Definition StackError.h:50
void SetErrorMessage(const Aws::String &value)
Definition StackError.h:59
const Aws::String & GetErrorMessage() const
Definition StackError.h:57
AWS_APPSTREAM_API StackError(Aws::Utils::Json::JsonView jsonValue)
const StackErrorCode & GetErrorCode() const
Definition StackError.h:45
StackError & WithErrorCode(const StackErrorCode &value)
Definition StackError.h:49
AWS_APPSTREAM_API StackError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const char *value)
Definition StackError.h:61
StackError & WithErrorMessage(Aws::String &&value)
Definition StackError.h:63
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
StackError & WithErrorMessage(const Aws::String &value)
Definition StackError.h:62
StackError & WithErrorMessage(const char *value)
Definition StackError.h:64
AWS_APPSTREAM_API StackError()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue