AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFuotaTaskRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/LoRaWANFuotaTask.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoTWireless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTWIRELESS_API UpdateFuotaTaskRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateFuotaTask"; }
32
33 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
34
35
37
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template<typename IdT = Aws::String>
41 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
42 template<typename IdT = Aws::String>
43 UpdateFuotaTaskRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
45
47
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 UpdateFuotaTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 UpdateFuotaTaskRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
68 inline const LoRaWANFuotaTask& GetLoRaWAN() const { return m_loRaWAN; }
69 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
70 template<typename LoRaWANT = LoRaWANFuotaTask>
71 void SetLoRaWAN(LoRaWANT&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::forward<LoRaWANT>(value); }
72 template<typename LoRaWANT = LoRaWANFuotaTask>
73 UpdateFuotaTaskRequest& WithLoRaWAN(LoRaWANT&& value) { SetLoRaWAN(std::forward<LoRaWANT>(value)); return *this;}
75
77
78 inline const Aws::String& GetFirmwareUpdateImage() const { return m_firmwareUpdateImage; }
79 inline bool FirmwareUpdateImageHasBeenSet() const { return m_firmwareUpdateImageHasBeenSet; }
80 template<typename FirmwareUpdateImageT = Aws::String>
81 void SetFirmwareUpdateImage(FirmwareUpdateImageT&& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = std::forward<FirmwareUpdateImageT>(value); }
82 template<typename FirmwareUpdateImageT = Aws::String>
83 UpdateFuotaTaskRequest& WithFirmwareUpdateImage(FirmwareUpdateImageT&& value) { SetFirmwareUpdateImage(std::forward<FirmwareUpdateImageT>(value)); return *this;}
85
87
88 inline const Aws::String& GetFirmwareUpdateRole() const { return m_firmwareUpdateRole; }
89 inline bool FirmwareUpdateRoleHasBeenSet() const { return m_firmwareUpdateRoleHasBeenSet; }
90 template<typename FirmwareUpdateRoleT = Aws::String>
91 void SetFirmwareUpdateRole(FirmwareUpdateRoleT&& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = std::forward<FirmwareUpdateRoleT>(value); }
92 template<typename FirmwareUpdateRoleT = Aws::String>
93 UpdateFuotaTaskRequest& WithFirmwareUpdateRole(FirmwareUpdateRoleT&& value) { SetFirmwareUpdateRole(std::forward<FirmwareUpdateRoleT>(value)); return *this;}
95
97
98 inline int GetRedundancyPercent() const { return m_redundancyPercent; }
99 inline bool RedundancyPercentHasBeenSet() const { return m_redundancyPercentHasBeenSet; }
100 inline void SetRedundancyPercent(int value) { m_redundancyPercentHasBeenSet = true; m_redundancyPercent = value; }
101 inline UpdateFuotaTaskRequest& WithRedundancyPercent(int value) { SetRedundancyPercent(value); return *this;}
103
105
106 inline int GetFragmentSizeBytes() const { return m_fragmentSizeBytes; }
107 inline bool FragmentSizeBytesHasBeenSet() const { return m_fragmentSizeBytesHasBeenSet; }
108 inline void SetFragmentSizeBytes(int value) { m_fragmentSizeBytesHasBeenSet = true; m_fragmentSizeBytes = value; }
109 inline UpdateFuotaTaskRequest& WithFragmentSizeBytes(int value) { SetFragmentSizeBytes(value); return *this;}
111
113
114 inline int GetFragmentIntervalMS() const { return m_fragmentIntervalMS; }
115 inline bool FragmentIntervalMSHasBeenSet() const { return m_fragmentIntervalMSHasBeenSet; }
116 inline void SetFragmentIntervalMS(int value) { m_fragmentIntervalMSHasBeenSet = true; m_fragmentIntervalMS = value; }
117 inline UpdateFuotaTaskRequest& WithFragmentIntervalMS(int value) { SetFragmentIntervalMS(value); return *this;}
119
121
122 inline const Aws::String& GetDescriptor() const { return m_descriptor; }
123 inline bool DescriptorHasBeenSet() const { return m_descriptorHasBeenSet; }
124 template<typename DescriptorT = Aws::String>
125 void SetDescriptor(DescriptorT&& value) { m_descriptorHasBeenSet = true; m_descriptor = std::forward<DescriptorT>(value); }
126 template<typename DescriptorT = Aws::String>
127 UpdateFuotaTaskRequest& WithDescriptor(DescriptorT&& value) { SetDescriptor(std::forward<DescriptorT>(value)); return *this;}
129 private:
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 LoRaWANFuotaTask m_loRaWAN;
141 bool m_loRaWANHasBeenSet = false;
142
143 Aws::String m_firmwareUpdateImage;
144 bool m_firmwareUpdateImageHasBeenSet = false;
145
146 Aws::String m_firmwareUpdateRole;
147 bool m_firmwareUpdateRoleHasBeenSet = false;
148
149 int m_redundancyPercent{0};
150 bool m_redundancyPercentHasBeenSet = false;
151
152 int m_fragmentSizeBytes{0};
153 bool m_fragmentSizeBytesHasBeenSet = false;
154
155 int m_fragmentIntervalMS{0};
156 bool m_fragmentIntervalMSHasBeenSet = false;
157
158 Aws::String m_descriptor;
159 bool m_descriptorHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace IoTWireless
164} // namespace Aws
UpdateFuotaTaskRequest & WithDescription(DescriptionT &&value)
void SetFirmwareUpdateImage(FirmwareUpdateImageT &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateFuotaTaskRequest & WithId(IdT &&value)
UpdateFuotaTaskRequest & WithFirmwareUpdateImage(FirmwareUpdateImageT &&value)
void SetFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
UpdateFuotaTaskRequest & WithRedundancyPercent(int value)
UpdateFuotaTaskRequest & WithFragmentIntervalMS(int value)
UpdateFuotaTaskRequest & WithDescriptor(DescriptorT &&value)
AWS_IOTWIRELESS_API UpdateFuotaTaskRequest()=default
UpdateFuotaTaskRequest & WithFragmentSizeBytes(int value)
UpdateFuotaTaskRequest & WithFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
UpdateFuotaTaskRequest & WithName(NameT &&value)
UpdateFuotaTaskRequest & WithLoRaWAN(LoRaWANT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String