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

A unique, friendly name for the gateway.

*/ inline const Aws::String& GetGatewayName() const{ return m_gatewayName; } /** *

A unique, friendly name for the gateway.

*/ inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; } /** *

A unique, friendly name for the gateway.

*/ inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; } /** *

A unique, friendly name for the gateway.

*/ inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); } /** *

A unique, friendly name for the gateway.

*/ inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); } /** *

A unique, friendly name for the gateway.

*/ inline CreateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;} /** *

A unique, friendly name for the gateway.

*/ inline CreateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;} /** *

A unique, friendly name for the gateway.

*/ inline CreateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;} /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline const GatewayPlatform& GetGatewayPlatform() const{ return m_gatewayPlatform; } /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline bool GatewayPlatformHasBeenSet() const { return m_gatewayPlatformHasBeenSet; } /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline void SetGatewayPlatform(const GatewayPlatform& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = value; } /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline void SetGatewayPlatform(GatewayPlatform&& value) { m_gatewayPlatformHasBeenSet = true; m_gatewayPlatform = std::move(value); } /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline CreateGatewayRequest& WithGatewayPlatform(const GatewayPlatform& value) { SetGatewayPlatform(value); return *this;} /** *

The gateway's platform. You can only specify one platform in a gateway.

*/ inline CreateGatewayRequest& WithGatewayPlatform(GatewayPlatform&& value) { SetGatewayPlatform(std::move(value)); return *this;} /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs that contain metadata for the gateway. For more * information, see Tagging * your IoT SiteWise resources in the IoT SiteWise User Guide.

*/ inline CreateGatewayRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_gatewayName; bool m_gatewayNameHasBeenSet = false; GatewayPlatform m_gatewayPlatform; bool m_gatewayPlatformHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws