AWS SDK for C++  0.14.3
AWS SDK for C++
FailedWorkspaceChangeRequest.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WorkSpaces
29 {
30 namespace Model
31 {
32 
39  {
40  public:
43  FailedWorkspaceChangeRequest& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
50 
54  inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
55 
59  inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
60 
64  inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
65 
69  inline FailedWorkspaceChangeRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
70 
74  inline FailedWorkspaceChangeRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(value); return *this;}
75 
79  inline FailedWorkspaceChangeRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
80 
84  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
85 
89  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
90 
94  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
95 
99  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
100 
104  inline FailedWorkspaceChangeRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
105 
109  inline FailedWorkspaceChangeRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(value); return *this;}
110 
114  inline FailedWorkspaceChangeRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
115 
119  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
120 
124  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
125 
129  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
130 
134  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
135 
139  inline FailedWorkspaceChangeRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
140 
144  inline FailedWorkspaceChangeRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(value); return *this;}
145 
149  inline FailedWorkspaceChangeRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
150 
151  private:
152  Aws::String m_workspaceId;
153  bool m_workspaceIdHasBeenSet;
154  Aws::String m_errorCode;
155  bool m_errorCodeHasBeenSet;
156  Aws::String m_errorMessage;
157  bool m_errorMessageHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace WorkSpaces
162 } // namespace Aws
FailedWorkspaceChangeRequest & WithWorkspaceId(Aws::String &&value)
FailedWorkspaceChangeRequest & WithWorkspaceId(const Aws::String &value)
FailedWorkspaceChangeRequest & WithErrorMessage(const Aws::String &value)
FailedWorkspaceChangeRequest & WithErrorCode(const char *value)
FailedWorkspaceChangeRequest & WithErrorMessage(const char *value)
FailedWorkspaceChangeRequest & WithErrorCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FailedWorkspaceChangeRequest & WithWorkspaceId(const char *value)
FailedWorkspaceChangeRequest & WithErrorMessage(Aws::String &&value)
FailedWorkspaceChangeRequest & WithErrorCode(const Aws::String &value)
JSON (JavaScript Object Notation).
#define AWS_WORKSPACES_API