AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateFuotaTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateFuotaTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateFuotaTaskRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
53 inline const Aws::String& GetDescription() const{ return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
56 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
57 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
58 inline CreateFuotaTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
59 inline CreateFuotaTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
60 inline CreateFuotaTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
62
64
65 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
66 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
67 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
68 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
69 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
71 inline CreateFuotaTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
72 inline CreateFuotaTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
74
76
77 inline const LoRaWANFuotaTask& GetLoRaWAN() const{ return m_loRaWAN; }
78 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
79 inline void SetLoRaWAN(const LoRaWANFuotaTask& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
80 inline void SetLoRaWAN(LoRaWANFuotaTask&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
81 inline CreateFuotaTaskRequest& WithLoRaWAN(const LoRaWANFuotaTask& value) { SetLoRaWAN(value); return *this;}
82 inline CreateFuotaTaskRequest& WithLoRaWAN(LoRaWANFuotaTask&& value) { SetLoRaWAN(std::move(value)); return *this;}
84
86
87 inline const Aws::String& GetFirmwareUpdateImage() const{ return m_firmwareUpdateImage; }
88 inline bool FirmwareUpdateImageHasBeenSet() const { return m_firmwareUpdateImageHasBeenSet; }
89 inline void SetFirmwareUpdateImage(const Aws::String& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = value; }
90 inline void SetFirmwareUpdateImage(Aws::String&& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = std::move(value); }
91 inline void SetFirmwareUpdateImage(const char* value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage.assign(value); }
93 inline CreateFuotaTaskRequest& WithFirmwareUpdateImage(Aws::String&& value) { SetFirmwareUpdateImage(std::move(value)); return *this;}
94 inline CreateFuotaTaskRequest& WithFirmwareUpdateImage(const char* value) { SetFirmwareUpdateImage(value); return *this;}
96
98
99 inline const Aws::String& GetFirmwareUpdateRole() const{ return m_firmwareUpdateRole; }
100 inline bool FirmwareUpdateRoleHasBeenSet() const { return m_firmwareUpdateRoleHasBeenSet; }
101 inline void SetFirmwareUpdateRole(const Aws::String& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = value; }
102 inline void SetFirmwareUpdateRole(Aws::String&& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = std::move(value); }
103 inline void SetFirmwareUpdateRole(const char* value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole.assign(value); }
105 inline CreateFuotaTaskRequest& WithFirmwareUpdateRole(Aws::String&& value) { SetFirmwareUpdateRole(std::move(value)); return *this;}
106 inline CreateFuotaTaskRequest& WithFirmwareUpdateRole(const char* value) { SetFirmwareUpdateRole(value); return *this;}
108
110
111 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
114 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
115 inline CreateFuotaTaskRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
116 inline CreateFuotaTaskRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
117 inline CreateFuotaTaskRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
118 inline CreateFuotaTaskRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
120
122
123 inline int GetRedundancyPercent() const{ return m_redundancyPercent; }
124 inline bool RedundancyPercentHasBeenSet() const { return m_redundancyPercentHasBeenSet; }
125 inline void SetRedundancyPercent(int value) { m_redundancyPercentHasBeenSet = true; m_redundancyPercent = value; }
126 inline CreateFuotaTaskRequest& WithRedundancyPercent(int value) { SetRedundancyPercent(value); return *this;}
128
130
131 inline int GetFragmentSizeBytes() const{ return m_fragmentSizeBytes; }
132 inline bool FragmentSizeBytesHasBeenSet() const { return m_fragmentSizeBytesHasBeenSet; }
133 inline void SetFragmentSizeBytes(int value) { m_fragmentSizeBytesHasBeenSet = true; m_fragmentSizeBytes = value; }
134 inline CreateFuotaTaskRequest& WithFragmentSizeBytes(int value) { SetFragmentSizeBytes(value); return *this;}
136
138
139 inline int GetFragmentIntervalMS() const{ return m_fragmentIntervalMS; }
140 inline bool FragmentIntervalMSHasBeenSet() const { return m_fragmentIntervalMSHasBeenSet; }
141 inline void SetFragmentIntervalMS(int value) { m_fragmentIntervalMSHasBeenSet = true; m_fragmentIntervalMS = value; }
142 inline CreateFuotaTaskRequest& WithFragmentIntervalMS(int value) { SetFragmentIntervalMS(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;
153 bool m_clientRequestTokenHasBeenSet = false;
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;
168 bool m_redundancyPercentHasBeenSet = false;
169
170 int m_fragmentSizeBytes;
171 bool m_fragmentSizeBytesHasBeenSet = false;
172
173 int m_fragmentIntervalMS;
174 bool m_fragmentIntervalMSHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace IoTWireless
179} // namespace Aws
CreateFuotaTaskRequest & WithFirmwareUpdateRole(const Aws::String &value)
CreateFuotaTaskRequest & WithDescription(const char *value)
CreateFuotaTaskRequest & WithFirmwareUpdateImage(Aws::String &&value)
CreateFuotaTaskRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFuotaTaskRequest & WithFirmwareUpdateImage(const char *value)
CreateFuotaTaskRequest & WithName(const Aws::String &value)
CreateFuotaTaskRequest & WithFragmentIntervalMS(int value)
CreateFuotaTaskRequest & WithLoRaWAN(LoRaWANFuotaTask &&value)
CreateFuotaTaskRequest & WithDescription(const Aws::String &value)
CreateFuotaTaskRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFuotaTaskRequest & WithClientRequestToken(Aws::String &&value)
CreateFuotaTaskRequest & WithName(const char *value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateFuotaTaskRequest & WithLoRaWAN(const LoRaWANFuotaTask &value)
CreateFuotaTaskRequest & AddTags(Tag &&value)
CreateFuotaTaskRequest & WithName(Aws::String &&value)
CreateFuotaTaskRequest & WithClientRequestToken(const Aws::String &value)
CreateFuotaTaskRequest & WithClientRequestToken(const char *value)
CreateFuotaTaskRequest & WithFirmwareUpdateRole(const char *value)
CreateFuotaTaskRequest & WithRedundancyPercent(int value)
CreateFuotaTaskRequest & WithFragmentSizeBytes(int value)
virtual const char * GetServiceRequestName() const override
CreateFuotaTaskRequest & AddTags(const Tag &value)
CreateFuotaTaskRequest & WithFirmwareUpdateImage(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateFuotaTaskRequest & WithDescription(Aws::String &&value)
CreateFuotaTaskRequest & WithFirmwareUpdateRole(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector