1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/workspaces/WorkSpaces_EXPORTS.h> 8 #include <aws/workspaces/WorkSpacesRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/workspaces/model/WorkspaceProperties.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace WorkSpaces 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_WORKSPACES_API ModifyWorkspacePropertiesRequest : public WorkSpacesRequest 23 { 24 public: 25 ModifyWorkspacePropertiesRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "ModifyWorkspaceProperties"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The identifier of the WorkSpace.</p> 40 */ GetWorkspaceId()41 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } 42 43 /** 44 * <p>The identifier of the WorkSpace.</p> 45 */ WorkspaceIdHasBeenSet()46 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } 47 48 /** 49 * <p>The identifier of the WorkSpace.</p> 50 */ SetWorkspaceId(const Aws::String & value)51 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } 52 53 /** 54 * <p>The identifier of the WorkSpace.</p> 55 */ SetWorkspaceId(Aws::String && value)56 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } 57 58 /** 59 * <p>The identifier of the WorkSpace.</p> 60 */ SetWorkspaceId(const char * value)61 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } 62 63 /** 64 * <p>The identifier of the WorkSpace.</p> 65 */ WithWorkspaceId(const Aws::String & value)66 inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} 67 68 /** 69 * <p>The identifier of the WorkSpace.</p> 70 */ WithWorkspaceId(Aws::String && value)71 inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} 72 73 /** 74 * <p>The identifier of the WorkSpace.</p> 75 */ WithWorkspaceId(const char * value)76 inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} 77 78 79 /** 80 * <p>The properties of the WorkSpace.</p> 81 */ GetWorkspaceProperties()82 inline const WorkspaceProperties& GetWorkspaceProperties() const{ return m_workspaceProperties; } 83 84 /** 85 * <p>The properties of the WorkSpace.</p> 86 */ WorkspacePropertiesHasBeenSet()87 inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; } 88 89 /** 90 * <p>The properties of the WorkSpace.</p> 91 */ SetWorkspaceProperties(const WorkspaceProperties & value)92 inline void SetWorkspaceProperties(const WorkspaceProperties& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = value; } 93 94 /** 95 * <p>The properties of the WorkSpace.</p> 96 */ SetWorkspaceProperties(WorkspaceProperties && value)97 inline void SetWorkspaceProperties(WorkspaceProperties&& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = std::move(value); } 98 99 /** 100 * <p>The properties of the WorkSpace.</p> 101 */ WithWorkspaceProperties(const WorkspaceProperties & value)102 inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(const WorkspaceProperties& value) { SetWorkspaceProperties(value); return *this;} 103 104 /** 105 * <p>The properties of the WorkSpace.</p> 106 */ WithWorkspaceProperties(WorkspaceProperties && value)107 inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(WorkspaceProperties&& value) { SetWorkspaceProperties(std::move(value)); return *this;} 108 109 private: 110 111 Aws::String m_workspaceId; 112 bool m_workspaceIdHasBeenSet; 113 114 WorkspaceProperties m_workspaceProperties; 115 bool m_workspacePropertiesHasBeenSet; 116 }; 117 118 } // namespace Model 119 } // namespace WorkSpaces 120 } // namespace Aws 121