AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const WorkspaceImageErrorDetailCode& GetErrorCode() const{ return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(const WorkspaceImageErrorDetailCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
50 inline void SetErrorCode(WorkspaceImageErrorDetailCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
51 inline ErrorDetails& WithErrorCode(const WorkspaceImageErrorDetailCode& value) { SetErrorCode(value); return *this;}
52 inline ErrorDetails& WithErrorCode(WorkspaceImageErrorDetailCode&& value) { SetErrorCode(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
60 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
61 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
62 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
63 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
64 inline ErrorDetails& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
65 inline ErrorDetails& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
66 inline ErrorDetails& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
68 private:
69
71 bool m_errorCodeHasBeenSet = false;
72
73 Aws::String m_errorMessage;
74 bool m_errorMessageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WorkSpaces
79} // namespace Aws
ErrorDetails & WithErrorCode(WorkspaceImageErrorDetailCode &&value)
ErrorDetails & WithErrorMessage(const char *value)
void SetErrorMessage(const char *value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const WorkspaceImageErrorDetailCode & GetErrorCode() const
void SetErrorCode(WorkspaceImageErrorDetailCode &&value)
void SetErrorCode(const WorkspaceImageErrorDetailCode &value)
void SetErrorMessage(const Aws::String &value)
AWS_WORKSPACES_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorDetails & WithErrorMessage(Aws::String &&value)
AWS_WORKSPACES_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(Aws::String &&value)
ErrorDetails & WithErrorCode(const WorkspaceImageErrorDetailCode &value)
const Aws::String & GetErrorMessage() const
ErrorDetails & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue