/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace IoTTwinMaker { namespace Model { /** */ class UpdateEntityRequest : public IoTTwinMakerRequest { public: AWS_IOTTWINMAKER_API UpdateEntityRequest(); // 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 "UpdateEntity"; } AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override; /** *

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

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

The ID of the workspace that contains the entity.

*/ inline UpdateEntityRequest& 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 UpdateEntityRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The ID of the entity.

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

The ID of the entity.

*/ inline UpdateEntityRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;} /** *

The name of the entity.

*/ inline const Aws::String& GetEntityName() const{ return m_entityName; } /** *

The name of the entity.

*/ inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; } /** *

The name of the entity.

*/ inline void SetEntityName(const Aws::String& value) { m_entityNameHasBeenSet = true; m_entityName = value; } /** *

The name of the entity.

*/ inline void SetEntityName(Aws::String&& value) { m_entityNameHasBeenSet = true; m_entityName = std::move(value); } /** *

The name of the entity.

*/ inline void SetEntityName(const char* value) { m_entityNameHasBeenSet = true; m_entityName.assign(value); } /** *

The name of the entity.

*/ inline UpdateEntityRequest& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;} /** *

The name of the entity.

*/ inline UpdateEntityRequest& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;} /** *

The name of the entity.

*/ inline UpdateEntityRequest& WithEntityName(const char* value) { SetEntityName(value); return *this;} /** *

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline const Aws::Map& GetComponentUpdates() const{ return m_componentUpdates; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline bool ComponentUpdatesHasBeenSet() const { return m_componentUpdatesHasBeenSet; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline void SetComponentUpdates(const Aws::Map& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates = value; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline void SetComponentUpdates(Aws::Map&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates = std::move(value); } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& WithComponentUpdates(const Aws::Map& value) { SetComponentUpdates(value); return *this;} /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& WithComponentUpdates(Aws::Map&& value) { SetComponentUpdates(std::move(value)); return *this;} /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(const Aws::String& key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, value); return *this; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(Aws::String&& key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(std::move(key), value); return *this; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(const Aws::String& key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, std::move(value)); return *this; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(Aws::String&& key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(std::move(key), std::move(value)); return *this; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(const char* key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, std::move(value)); return *this; } /** *

An object that maps strings to the component updates in the request. Each * string in the mapping must be unique to this object.

*/ inline UpdateEntityRequest& AddComponentUpdates(const char* key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, value); return *this; } /** *

An object that describes the update request for a parent entity.

*/ inline const ParentEntityUpdateRequest& GetParentEntityUpdate() const{ return m_parentEntityUpdate; } /** *

An object that describes the update request for a parent entity.

*/ inline bool ParentEntityUpdateHasBeenSet() const { return m_parentEntityUpdateHasBeenSet; } /** *

An object that describes the update request for a parent entity.

*/ inline void SetParentEntityUpdate(const ParentEntityUpdateRequest& value) { m_parentEntityUpdateHasBeenSet = true; m_parentEntityUpdate = value; } /** *

An object that describes the update request for a parent entity.

*/ inline void SetParentEntityUpdate(ParentEntityUpdateRequest&& value) { m_parentEntityUpdateHasBeenSet = true; m_parentEntityUpdate = std::move(value); } /** *

An object that describes the update request for a parent entity.

*/ inline UpdateEntityRequest& WithParentEntityUpdate(const ParentEntityUpdateRequest& value) { SetParentEntityUpdate(value); return *this;} /** *

An object that describes the update request for a parent entity.

*/ inline UpdateEntityRequest& WithParentEntityUpdate(ParentEntityUpdateRequest&& value) { SetParentEntityUpdate(std::move(value)); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_entityName; bool m_entityNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_componentUpdates; bool m_componentUpdatesHasBeenSet = false; ParentEntityUpdateRequest m_parentEntityUpdate; bool m_parentEntityUpdateHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws