AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspacesPoolError.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/WorkspacesPoolErrorCode.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
33 {
34 public:
35 AWS_WORKSPACES_API WorkspacesPoolError();
36 AWS_WORKSPACES_API WorkspacesPoolError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const WorkspacesPoolErrorCode& GetErrorCode() const{ return m_errorCode; }
46 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
47 inline void SetErrorCode(const WorkspacesPoolErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
48 inline void SetErrorCode(WorkspacesPoolErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
49 inline WorkspacesPoolError& WithErrorCode(const WorkspacesPoolErrorCode& value) { SetErrorCode(value); return *this;}
50 inline WorkspacesPoolError& WithErrorCode(WorkspacesPoolErrorCode&& 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 WorkspacesPoolError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
63 inline WorkspacesPoolError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
64 inline WorkspacesPoolError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
66 private:
67
68 WorkspacesPoolErrorCode 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 WorkSpaces
77} // namespace Aws
void SetErrorCode(WorkspacesPoolErrorCode &&value)
void SetErrorCode(const WorkspacesPoolErrorCode &value)
const WorkspacesPoolErrorCode & GetErrorCode() const
void SetErrorMessage(const Aws::String &value)
WorkspacesPoolError & WithErrorMessage(const char *value)
AWS_WORKSPACES_API WorkspacesPoolError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspacesPoolError & WithErrorCode(const WorkspacesPoolErrorCode &value)
WorkspacesPoolError & WithErrorMessage(const Aws::String &value)
AWS_WORKSPACES_API WorkspacesPoolError(Aws::Utils::Json::JsonView jsonValue)
WorkspacesPoolError & WithErrorMessage(Aws::String &&value)
WorkspacesPoolError & WithErrorCode(WorkspacesPoolErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue