/** * 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 #include #include #include #include namespace Aws { namespace IoTWireless { namespace Model { /** */ class CreateWirelessDeviceRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API CreateWirelessDeviceRequest(); // 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 "CreateWirelessDevice"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; /** *

The wireless device type.

*/ inline const WirelessDeviceType& GetType() const{ return m_type; } /** *

The wireless device type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The wireless device type.

*/ inline void SetType(const WirelessDeviceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The wireless device type.

*/ inline void SetType(WirelessDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The wireless device type.

*/ inline CreateWirelessDeviceRequest& WithType(const WirelessDeviceType& value) { SetType(value); return *this;} /** *

The wireless device type.

*/ inline CreateWirelessDeviceRequest& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;} /** *

The name of the new resource.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new resource.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new resource.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the new resource.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the new resource.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the new resource.

*/ inline CreateWirelessDeviceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new resource.

*/ inline CreateWirelessDeviceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the new resource.

*/ inline CreateWirelessDeviceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The description of the new resource.

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

The name of the destination to assign to the new wireless device.

*/ inline const Aws::String& GetDestinationName() const{ return m_destinationName; } /** *

The name of the destination to assign to the new wireless device.

*/ inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } /** *

The name of the destination to assign to the new wireless device.

*/ inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } /** *

The name of the destination to assign to the new wireless device.

*/ inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } /** *

The name of the destination to assign to the new wireless device.

*/ inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } /** *

The name of the destination to assign to the new wireless device.

*/ inline CreateWirelessDeviceRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} /** *

The name of the destination to assign to the new wireless device.

*/ inline CreateWirelessDeviceRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} /** *

The name of the destination to assign to the new wireless device.

*/ inline CreateWirelessDeviceRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessDeviceRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessDeviceRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessDeviceRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The device configuration information to use to create the wireless * device.

*/ inline const LoRaWANDevice& GetLoRaWAN() const{ return m_loRaWAN; } /** *

The device configuration information to use to create the wireless * device.

*/ inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } /** *

The device configuration information to use to create the wireless * device.

*/ inline void SetLoRaWAN(const LoRaWANDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } /** *

The device configuration information to use to create the wireless * device.

*/ inline void SetLoRaWAN(LoRaWANDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } /** *

The device configuration information to use to create the wireless * device.

*/ inline CreateWirelessDeviceRequest& WithLoRaWAN(const LoRaWANDevice& value) { SetLoRaWAN(value); return *this;} /** *

The device configuration information to use to create the wireless * device.

*/ inline CreateWirelessDeviceRequest& WithLoRaWAN(LoRaWANDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} /** *

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

*/ inline CreateWirelessDeviceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to attach to the new wireless device. Tags are metadata that you can * use to manage a resource.

*/ inline CreateWirelessDeviceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline const PositioningConfigStatus& GetPositioning() const{ return m_positioning; } /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline bool PositioningHasBeenSet() const { return m_positioningHasBeenSet; } /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline void SetPositioning(const PositioningConfigStatus& value) { m_positioningHasBeenSet = true; m_positioning = value; } /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline void SetPositioning(PositioningConfigStatus&& value) { m_positioningHasBeenSet = true; m_positioning = std::move(value); } /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline CreateWirelessDeviceRequest& WithPositioning(const PositioningConfigStatus& value) { SetPositioning(value); return *this;} /** *

FPort values for the GNSS, stream, and ClockSync functions of the positioning * information.

*/ inline CreateWirelessDeviceRequest& WithPositioning(PositioningConfigStatus&& value) { SetPositioning(std::move(value)); return *this;} /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline const SidewalkCreateWirelessDevice& GetSidewalk() const{ return m_sidewalk; } /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline void SetSidewalk(const SidewalkCreateWirelessDevice& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline void SetSidewalk(SidewalkCreateWirelessDevice&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline CreateWirelessDeviceRequest& WithSidewalk(const SidewalkCreateWirelessDevice& value) { SetSidewalk(value); return *this;} /** *

The device configuration information to use to create the Sidewalk * device.

*/ inline CreateWirelessDeviceRequest& WithSidewalk(SidewalkCreateWirelessDevice&& value) { SetSidewalk(std::move(value)); return *this;} private: WirelessDeviceType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_destinationName; bool m_destinationNameHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; LoRaWANDevice m_loRaWAN; bool m_loRaWANHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; PositioningConfigStatus m_positioning; bool m_positioningHasBeenSet = false; SidewalkCreateWirelessDevice m_sidewalk; bool m_sidewalkHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws