/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoTWireless { namespace Model { /** */ class UpdateFuotaTaskRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API UpdateFuotaTaskRequest(); // 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 "UpdateFuotaTask"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; inline const Aws::String& GetId() const{ return m_id; } inline bool IdHasBeenSet() const { return m_idHasBeenSet; } inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } inline UpdateFuotaTaskRequest& WithId(const Aws::String& value) { SetId(value); return *this;} inline UpdateFuotaTaskRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} inline UpdateFuotaTaskRequest& WithId(const char* value) { SetId(value); return *this;} inline const Aws::String& GetName() const{ return m_name; } inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } inline UpdateFuotaTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;} inline UpdateFuotaTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline UpdateFuotaTaskRequest& WithName(const char* value) { SetName(value); return *this;} inline const Aws::String& GetDescription() const{ return m_description; } inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } inline UpdateFuotaTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} inline UpdateFuotaTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline UpdateFuotaTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;} inline const LoRaWANFuotaTask& GetLoRaWAN() const{ return m_loRaWAN; } inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } inline void SetLoRaWAN(const LoRaWANFuotaTask& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } inline void SetLoRaWAN(LoRaWANFuotaTask&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } inline UpdateFuotaTaskRequest& WithLoRaWAN(const LoRaWANFuotaTask& value) { SetLoRaWAN(value); return *this;} inline UpdateFuotaTaskRequest& WithLoRaWAN(LoRaWANFuotaTask&& value) { SetLoRaWAN(std::move(value)); return *this;} inline const Aws::String& GetFirmwareUpdateImage() const{ return m_firmwareUpdateImage; } inline bool FirmwareUpdateImageHasBeenSet() const { return m_firmwareUpdateImageHasBeenSet; } inline void SetFirmwareUpdateImage(const Aws::String& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = value; } inline void SetFirmwareUpdateImage(Aws::String&& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = std::move(value); } inline void SetFirmwareUpdateImage(const char* value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage.assign(value); } inline UpdateFuotaTaskRequest& WithFirmwareUpdateImage(const Aws::String& value) { SetFirmwareUpdateImage(value); return *this;} inline UpdateFuotaTaskRequest& WithFirmwareUpdateImage(Aws::String&& value) { SetFirmwareUpdateImage(std::move(value)); return *this;} inline UpdateFuotaTaskRequest& WithFirmwareUpdateImage(const char* value) { SetFirmwareUpdateImage(value); return *this;} inline const Aws::String& GetFirmwareUpdateRole() const{ return m_firmwareUpdateRole; } inline bool FirmwareUpdateRoleHasBeenSet() const { return m_firmwareUpdateRoleHasBeenSet; } inline void SetFirmwareUpdateRole(const Aws::String& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = value; } inline void SetFirmwareUpdateRole(Aws::String&& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = std::move(value); } inline void SetFirmwareUpdateRole(const char* value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole.assign(value); } inline UpdateFuotaTaskRequest& WithFirmwareUpdateRole(const Aws::String& value) { SetFirmwareUpdateRole(value); return *this;} inline UpdateFuotaTaskRequest& WithFirmwareUpdateRole(Aws::String&& value) { SetFirmwareUpdateRole(std::move(value)); return *this;} inline UpdateFuotaTaskRequest& WithFirmwareUpdateRole(const char* value) { SetFirmwareUpdateRole(value); return *this;} inline int GetRedundancyPercent() const{ return m_redundancyPercent; } inline bool RedundancyPercentHasBeenSet() const { return m_redundancyPercentHasBeenSet; } inline void SetRedundancyPercent(int value) { m_redundancyPercentHasBeenSet = true; m_redundancyPercent = value; } inline UpdateFuotaTaskRequest& WithRedundancyPercent(int value) { SetRedundancyPercent(value); return *this;} inline int GetFragmentSizeBytes() const{ return m_fragmentSizeBytes; } inline bool FragmentSizeBytesHasBeenSet() const { return m_fragmentSizeBytesHasBeenSet; } inline void SetFragmentSizeBytes(int value) { m_fragmentSizeBytesHasBeenSet = true; m_fragmentSizeBytes = value; } inline UpdateFuotaTaskRequest& WithFragmentSizeBytes(int value) { SetFragmentSizeBytes(value); return *this;} inline int GetFragmentIntervalMS() const{ return m_fragmentIntervalMS; } inline bool FragmentIntervalMSHasBeenSet() const { return m_fragmentIntervalMSHasBeenSet; } inline void SetFragmentIntervalMS(int value) { m_fragmentIntervalMSHasBeenSet = true; m_fragmentIntervalMS = value; } inline UpdateFuotaTaskRequest& WithFragmentIntervalMS(int value) { SetFragmentIntervalMS(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; LoRaWANFuotaTask m_loRaWAN; bool m_loRaWANHasBeenSet = false; Aws::String m_firmwareUpdateImage; bool m_firmwareUpdateImageHasBeenSet = false; Aws::String m_firmwareUpdateRole; bool m_firmwareUpdateRoleHasBeenSet = false; int m_redundancyPercent; bool m_redundancyPercentHasBeenSet = false; int m_fragmentSizeBytes; bool m_fragmentSizeBytesHasBeenSet = false; int m_fragmentIntervalMS; bool m_fragmentIntervalMSHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws