AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorDetails.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/WorkspaceImageErrorDetailCode.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 WorkSpaces
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_WORKSPACES_API ErrorDetails() = default;
38 AWS_WORKSPACES_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACES_API ErrorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline WorkspaceImageErrorDetailCode GetErrorCode() const { return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(WorkspaceImageErrorDetailCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
52
54
57 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
58 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
59 template<typename ErrorMessageT = Aws::String>
60 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
61 template<typename ErrorMessageT = Aws::String>
62 ErrorDetails& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
64 private:
65
67 bool m_errorCodeHasBeenSet = false;
68
69 Aws::String m_errorMessage;
70 bool m_errorMessageHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkSpaces
75} // namespace Aws
AWS_WORKSPACES_API ErrorDetails()=default
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceImageErrorDetailCode GetErrorCode() const
void SetErrorMessage(ErrorMessageT &&value)
ErrorDetails & WithErrorMessage(ErrorMessageT &&value)
AWS_WORKSPACES_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
ErrorDetails & WithErrorCode(WorkspaceImageErrorDetailCode value)
const Aws::String & GetErrorMessage() const
void SetErrorCode(WorkspaceImageErrorDetailCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue