AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedWorkspaceChangeRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpaces
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_WORKSPACES_API FailedWorkspaceChangeRequest();
40 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
48 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
49 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
50 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
51 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
52 inline FailedWorkspaceChangeRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
53 inline FailedWorkspaceChangeRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
54 inline FailedWorkspaceChangeRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
56
58
61 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
66 inline FailedWorkspaceChangeRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
67 inline FailedWorkspaceChangeRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
68 inline FailedWorkspaceChangeRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
70
72
76 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
77 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
78 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
79 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
80 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
81 inline FailedWorkspaceChangeRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
82 inline FailedWorkspaceChangeRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
83 inline FailedWorkspaceChangeRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
85 private:
86
87 Aws::String m_workspaceId;
88 bool m_workspaceIdHasBeenSet = false;
89
90 Aws::String m_errorCode;
91 bool m_errorCodeHasBeenSet = false;
92
93 Aws::String m_errorMessage;
94 bool m_errorMessageHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace WorkSpaces
99} // namespace Aws
FailedWorkspaceChangeRequest & WithErrorMessage(const Aws::String &value)
AWS_WORKSPACES_API FailedWorkspaceChangeRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedWorkspaceChangeRequest & WithWorkspaceId(const char *value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
FailedWorkspaceChangeRequest & WithErrorMessage(const char *value)
FailedWorkspaceChangeRequest & WithErrorCode(Aws::String &&value)
FailedWorkspaceChangeRequest & WithErrorCode(const char *value)
AWS_WORKSPACES_API FailedWorkspaceChangeRequest(Aws::Utils::Json::JsonView jsonValue)
FailedWorkspaceChangeRequest & WithErrorCode(const Aws::String &value)
FailedWorkspaceChangeRequest & WithErrorMessage(Aws::String &&value)
FailedWorkspaceChangeRequest & WithWorkspaceId(Aws::String &&value)
FailedWorkspaceChangeRequest & WithWorkspaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue