AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedCreateWorkspaceRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/WorkspaceRequest.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 FailedCreateWorkspaceRequest();
38 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const WorkspaceRequest& GetWorkspaceRequest() const{ return m_workspaceRequest; }
46 inline bool WorkspaceRequestHasBeenSet() const { return m_workspaceRequestHasBeenSet; }
47 inline void SetWorkspaceRequest(const WorkspaceRequest& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = value; }
48 inline void SetWorkspaceRequest(WorkspaceRequest&& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = std::move(value); }
52
54
57 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
58 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
59 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
60 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
61 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
62 inline FailedCreateWorkspaceRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
63 inline FailedCreateWorkspaceRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
64 inline FailedCreateWorkspaceRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
66
68
72 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
73 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
74 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
75 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
76 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
77 inline FailedCreateWorkspaceRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
78 inline FailedCreateWorkspaceRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
79 inline FailedCreateWorkspaceRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
81 private:
82
83 WorkspaceRequest m_workspaceRequest;
84 bool m_workspaceRequestHasBeenSet = false;
85
86 Aws::String m_errorCode;
87 bool m_errorCodeHasBeenSet = false;
88
89 Aws::String m_errorMessage;
90 bool m_errorMessageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WorkSpaces
95} // namespace Aws
FailedCreateWorkspaceRequest & WithErrorMessage(Aws::String &&value)
FailedCreateWorkspaceRequest & WithWorkspaceRequest(WorkspaceRequest &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
FailedCreateWorkspaceRequest & WithErrorCode(const char *value)
AWS_WORKSPACES_API FailedCreateWorkspaceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedCreateWorkspaceRequest & WithErrorMessage(const char *value)
FailedCreateWorkspaceRequest & WithErrorCode(Aws::String &&value)
FailedCreateWorkspaceRequest & WithWorkspaceRequest(const WorkspaceRequest &value)
FailedCreateWorkspaceRequest & WithErrorCode(const Aws::String &value)
FailedCreateWorkspaceRequest & WithErrorMessage(const Aws::String &value)
AWS_WORKSPACES_API FailedCreateWorkspaceRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue