AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFuotaTaskRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoTWireless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTWIRELESS_API CreateFuotaTaskRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFuotaTask"; }
35
36 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
37
38
40
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 CreateFuotaTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
51 inline const Aws::String& GetDescription() const { return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 template<typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
55 template<typename DescriptionT = Aws::String>
56 CreateFuotaTaskRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
58
60
61 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
62 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
63 template<typename ClientRequestTokenT = Aws::String>
64 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
65 template<typename ClientRequestTokenT = Aws::String>
66 CreateFuotaTaskRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
68
70
71 inline const LoRaWANFuotaTask& GetLoRaWAN() const { return m_loRaWAN; }
72 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
73 template<typename LoRaWANT = LoRaWANFuotaTask>
74 void SetLoRaWAN(LoRaWANT&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::forward<LoRaWANT>(value); }
75 template<typename LoRaWANT = LoRaWANFuotaTask>
76 CreateFuotaTaskRequest& WithLoRaWAN(LoRaWANT&& value) { SetLoRaWAN(std::forward<LoRaWANT>(value)); return *this;}
78
80
81 inline const Aws::String& GetFirmwareUpdateImage() const { return m_firmwareUpdateImage; }
82 inline bool FirmwareUpdateImageHasBeenSet() const { return m_firmwareUpdateImageHasBeenSet; }
83 template<typename FirmwareUpdateImageT = Aws::String>
84 void SetFirmwareUpdateImage(FirmwareUpdateImageT&& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = std::forward<FirmwareUpdateImageT>(value); }
85 template<typename FirmwareUpdateImageT = Aws::String>
86 CreateFuotaTaskRequest& WithFirmwareUpdateImage(FirmwareUpdateImageT&& value) { SetFirmwareUpdateImage(std::forward<FirmwareUpdateImageT>(value)); return *this;}
88
90
91 inline const Aws::String& GetFirmwareUpdateRole() const { return m_firmwareUpdateRole; }
92 inline bool FirmwareUpdateRoleHasBeenSet() const { return m_firmwareUpdateRoleHasBeenSet; }
93 template<typename FirmwareUpdateRoleT = Aws::String>
94 void SetFirmwareUpdateRole(FirmwareUpdateRoleT&& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = std::forward<FirmwareUpdateRoleT>(value); }
95 template<typename FirmwareUpdateRoleT = Aws::String>
96 CreateFuotaTaskRequest& WithFirmwareUpdateRole(FirmwareUpdateRoleT&& value) { SetFirmwareUpdateRole(std::forward<FirmwareUpdateRoleT>(value)); return *this;}
98
100
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Vector<Tag>>
106 CreateFuotaTaskRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsT = Tag>
108 CreateFuotaTaskRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
110
112
113 inline int GetRedundancyPercent() const { return m_redundancyPercent; }
114 inline bool RedundancyPercentHasBeenSet() const { return m_redundancyPercentHasBeenSet; }
115 inline void SetRedundancyPercent(int value) { m_redundancyPercentHasBeenSet = true; m_redundancyPercent = value; }
116 inline CreateFuotaTaskRequest& WithRedundancyPercent(int value) { SetRedundancyPercent(value); return *this;}
118
120
121 inline int GetFragmentSizeBytes() const { return m_fragmentSizeBytes; }
122 inline bool FragmentSizeBytesHasBeenSet() const { return m_fragmentSizeBytesHasBeenSet; }
123 inline void SetFragmentSizeBytes(int value) { m_fragmentSizeBytesHasBeenSet = true; m_fragmentSizeBytes = value; }
124 inline CreateFuotaTaskRequest& WithFragmentSizeBytes(int value) { SetFragmentSizeBytes(value); return *this;}
126
128
129 inline int GetFragmentIntervalMS() const { return m_fragmentIntervalMS; }
130 inline bool FragmentIntervalMSHasBeenSet() const { return m_fragmentIntervalMSHasBeenSet; }
131 inline void SetFragmentIntervalMS(int value) { m_fragmentIntervalMSHasBeenSet = true; m_fragmentIntervalMS = value; }
132 inline CreateFuotaTaskRequest& WithFragmentIntervalMS(int value) { SetFragmentIntervalMS(value); return *this;}
134
136
137 inline const Aws::String& GetDescriptor() const { return m_descriptor; }
138 inline bool DescriptorHasBeenSet() const { return m_descriptorHasBeenSet; }
139 template<typename DescriptorT = Aws::String>
140 void SetDescriptor(DescriptorT&& value) { m_descriptorHasBeenSet = true; m_descriptor = std::forward<DescriptorT>(value); }
141 template<typename DescriptorT = Aws::String>
142 CreateFuotaTaskRequest& WithDescriptor(DescriptorT&& value) { SetDescriptor(std::forward<DescriptorT>(value)); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
153 bool m_clientRequestTokenHasBeenSet = true;
154
155 LoRaWANFuotaTask m_loRaWAN;
156 bool m_loRaWANHasBeenSet = false;
157
158 Aws::String m_firmwareUpdateImage;
159 bool m_firmwareUpdateImageHasBeenSet = false;
160
161 Aws::String m_firmwareUpdateRole;
162 bool m_firmwareUpdateRoleHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166
167 int m_redundancyPercent{0};
168 bool m_redundancyPercentHasBeenSet = false;
169
170 int m_fragmentSizeBytes{0};
171 bool m_fragmentSizeBytesHasBeenSet = false;
172
173 int m_fragmentIntervalMS{0};
174 bool m_fragmentIntervalMSHasBeenSet = false;
175
176 Aws::String m_descriptor;
177 bool m_descriptorHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace IoTWireless
182} // namespace Aws
CreateFuotaTaskRequest & WithDescription(DescriptionT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
CreateFuotaTaskRequest & WithFragmentIntervalMS(int value)
AWS_IOTWIRELESS_API CreateFuotaTaskRequest()=default
CreateFuotaTaskRequest & WithName(NameT &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateFuotaTaskRequest & WithFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
void SetFirmwareUpdateImage(FirmwareUpdateImageT &&value)
CreateFuotaTaskRequest & WithLoRaWAN(LoRaWANT &&value)
CreateFuotaTaskRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateFuotaTaskRequest & WithRedundancyPercent(int value)
CreateFuotaTaskRequest & WithFragmentSizeBytes(int value)
CreateFuotaTaskRequest & WithFirmwareUpdateImage(FirmwareUpdateImageT &&value)
CreateFuotaTaskRequest & WithDescriptor(DescriptorT &&value)
CreateFuotaTaskRequest & WithTags(TagsT &&value)
CreateFuotaTaskRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector