AWS SDK for C++  0.14.3
AWS SDK for C++
FailedCreateWorkspaceRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace WorkSpaces
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  FailedCreateWorkspaceRequest& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const WorkspaceRequest& GetWorkspaceRequest() const{ return m_workspaceRequest; }
50 
55  inline void SetWorkspaceRequest(const WorkspaceRequest& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = value; }
56 
61  inline void SetWorkspaceRequest(WorkspaceRequest&& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = value; }
62 
67  inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(const WorkspaceRequest& value) { SetWorkspaceRequest(value); return *this;}
68 
73  inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(WorkspaceRequest&& value) { SetWorkspaceRequest(value); return *this;}
74 
78  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
79 
83  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
84 
88  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
89 
93  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
94 
98  inline FailedCreateWorkspaceRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
99 
103  inline FailedCreateWorkspaceRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(value); return *this;}
104 
108  inline FailedCreateWorkspaceRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
109 
113  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
114 
118  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
119 
123  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
124 
128  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
129 
133  inline FailedCreateWorkspaceRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
134 
138  inline FailedCreateWorkspaceRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(value); return *this;}
139 
143  inline FailedCreateWorkspaceRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
144 
145  private:
146  WorkspaceRequest m_workspaceRequest;
147  bool m_workspaceRequestHasBeenSet;
148  Aws::String m_errorCode;
149  bool m_errorCodeHasBeenSet;
150  Aws::String m_errorMessage;
151  bool m_errorMessageHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace WorkSpaces
156 } // namespace Aws
FailedCreateWorkspaceRequest & WithErrorMessage(Aws::String &&value)
FailedCreateWorkspaceRequest & WithErrorCode(const Aws::String &value)
FailedCreateWorkspaceRequest & WithErrorCode(const char *value)
FailedCreateWorkspaceRequest & WithErrorMessage(const Aws::String &value)
FailedCreateWorkspaceRequest & WithWorkspaceRequest(const WorkspaceRequest &value)
FailedCreateWorkspaceRequest & WithErrorMessage(const char *value)
FailedCreateWorkspaceRequest & WithWorkspaceRequest(WorkspaceRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FailedCreateWorkspaceRequest & WithErrorCode(Aws::String &&value)
JSON (JavaScript Object Notation).
#define AWS_WORKSPACES_API