/** * 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 IoT1ClickProjects { namespace Model { /** */ class AssociateDeviceWithPlacementRequest : public IoT1ClickProjectsRequest { public: AWS_IOT1CLICKPROJECTS_API AssociateDeviceWithPlacementRequest(); // 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 "AssociateDeviceWithPlacement"; } AWS_IOT1CLICKPROJECTS_API Aws::String SerializePayload() const override; /** *

The name of the project containing the placement in which to associate the * device.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project containing the placement in which to associate the * device.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project containing the placement in which to associate the * device.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project containing the placement in which to associate the * device.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project containing the placement in which to associate the * device.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project containing the placement in which to associate the * device.

*/ inline AssociateDeviceWithPlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project containing the placement in which to associate the * device.

*/ inline AssociateDeviceWithPlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project containing the placement in which to associate the * device.

*/ inline AssociateDeviceWithPlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

The name of the placement in which to associate the device.

*/ inline const Aws::String& GetPlacementName() const{ return m_placementName; } /** *

The name of the placement in which to associate the device.

*/ inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; } /** *

The name of the placement in which to associate the device.

*/ inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; } /** *

The name of the placement in which to associate the device.

*/ inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); } /** *

The name of the placement in which to associate the device.

*/ inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); } /** *

The name of the placement in which to associate the device.

*/ inline AssociateDeviceWithPlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;} /** *

The name of the placement in which to associate the device.

*/ inline AssociateDeviceWithPlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;} /** *

The name of the placement in which to associate the device.

*/ inline AssociateDeviceWithPlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;} /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The ID of the physical device to be associated with the given placement in * the project. Note that a mandatory 4 character prefix is required for all * deviceId values.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *

The device template name to associate with the device ID.

*/ inline const Aws::String& GetDeviceTemplateName() const{ return m_deviceTemplateName; } /** *

The device template name to associate with the device ID.

*/ inline bool DeviceTemplateNameHasBeenSet() const { return m_deviceTemplateNameHasBeenSet; } /** *

The device template name to associate with the device ID.

*/ inline void SetDeviceTemplateName(const Aws::String& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = value; } /** *

The device template name to associate with the device ID.

*/ inline void SetDeviceTemplateName(Aws::String&& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = std::move(value); } /** *

The device template name to associate with the device ID.

*/ inline void SetDeviceTemplateName(const char* value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName.assign(value); } /** *

The device template name to associate with the device ID.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const Aws::String& value) { SetDeviceTemplateName(value); return *this;} /** *

The device template name to associate with the device ID.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(Aws::String&& value) { SetDeviceTemplateName(std::move(value)); return *this;} /** *

The device template name to associate with the device ID.

*/ inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const char* value) { SetDeviceTemplateName(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_placementName; bool m_placementNameHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; Aws::String m_deviceTemplateName; bool m_deviceTemplateNameHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickProjects } // namespace Aws