/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace IoTTwinMaker { namespace Model { /** */ class UpdateWorkspaceRequest : public IoTTwinMakerRequest { public: AWS_IOTTWINMAKER_API UpdateWorkspaceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspace"; } AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override; /** *

The ID of the workspace.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace.

*/ inline UpdateWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace.

*/ inline UpdateWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace.

*/ inline UpdateWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The description of the workspace.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the workspace.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the workspace.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the workspace.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the workspace.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the workspace.

*/ inline UpdateWorkspaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the workspace.

*/ inline UpdateWorkspaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the workspace.

*/ inline UpdateWorkspaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the execution role associated with the workspace.

*/ inline const Aws::String& GetRole() const{ return m_role; } /** *

The ARN of the execution role associated with the workspace.

*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *

The ARN of the execution role associated with the workspace.

*/ inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; } /** *

The ARN of the execution role associated with the workspace.

*/ inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *

The ARN of the execution role associated with the workspace.

*/ inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); } /** *

The ARN of the execution role associated with the workspace.

*/ inline UpdateWorkspaceRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

The ARN of the execution role associated with the workspace.

*/ inline UpdateWorkspaceRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

The ARN of the execution role associated with the workspace.

*/ inline UpdateWorkspaceRequest& WithRole(const char* value) { SetRole(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_role; bool m_roleHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws