/** * 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 GetEntityRequest : public IoTTwinMakerRequest { public: AWS_IOTTWINMAKER_API GetEntityRequest(); // 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 "GetEntity"; } 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 GetEntityRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace.

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

The ID of the workspace.

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

The ID of the entity.

*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *

The ID of the entity.

*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *

The ID of the entity.

*/ inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; } /** *

The ID of the entity.

*/ inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); } /** *

The ID of the entity.

*/ inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); } /** *

The ID of the entity.

*/ inline GetEntityRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The ID of the entity.

*/ inline GetEntityRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *

The ID of the entity.

*/ inline GetEntityRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws