AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
41 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
42 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
43 inline UpdateFuotaTaskRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
44 inline UpdateFuotaTaskRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
45 inline UpdateFuotaTaskRequest& WithId(const char* value) { SetId(value); return *this;}
47
49
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline UpdateFuotaTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline UpdateFuotaTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline UpdateFuotaTaskRequest& WithName(const char* value) { SetName(value); return *this;}
59
61
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline UpdateFuotaTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline UpdateFuotaTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline UpdateFuotaTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
74 inline const LoRaWANFuotaTask& GetLoRaWAN() const{ return m_loRaWAN; }
75 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
76 inline void SetLoRaWAN(const LoRaWANFuotaTask& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
77 inline void SetLoRaWAN(LoRaWANFuotaTask&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
78 inline UpdateFuotaTaskRequest& WithLoRaWAN(const LoRaWANFuotaTask& value) { SetLoRaWAN(value); return *this;}
79 inline UpdateFuotaTaskRequest& WithLoRaWAN(LoRaWANFuotaTask&& value) { SetLoRaWAN(std::move(value)); return *this;}
81
83
84 inline const Aws::String& GetFirmwareUpdateImage() const{ return m_firmwareUpdateImage; }
85 inline bool FirmwareUpdateImageHasBeenSet() const { return m_firmwareUpdateImageHasBeenSet; }
86 inline void SetFirmwareUpdateImage(const Aws::String& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = value; }
87 inline void SetFirmwareUpdateImage(Aws::String&& value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage = std::move(value); }
88 inline void SetFirmwareUpdateImage(const char* value) { m_firmwareUpdateImageHasBeenSet = true; m_firmwareUpdateImage.assign(value); }
90 inline UpdateFuotaTaskRequest& WithFirmwareUpdateImage(Aws::String&& value) { SetFirmwareUpdateImage(std::move(value)); return *this;}
91 inline UpdateFuotaTaskRequest& WithFirmwareUpdateImage(const char* value) { SetFirmwareUpdateImage(value); return *this;}
93
95
96 inline const Aws::String& GetFirmwareUpdateRole() const{ return m_firmwareUpdateRole; }
97 inline bool FirmwareUpdateRoleHasBeenSet() const { return m_firmwareUpdateRoleHasBeenSet; }
98 inline void SetFirmwareUpdateRole(const Aws::String& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = value; }
99 inline void SetFirmwareUpdateRole(Aws::String&& value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole = std::move(value); }
100 inline void SetFirmwareUpdateRole(const char* value) { m_firmwareUpdateRoleHasBeenSet = true; m_firmwareUpdateRole.assign(value); }
102 inline UpdateFuotaTaskRequest& WithFirmwareUpdateRole(Aws::String&& value) { SetFirmwareUpdateRole(std::move(value)); return *this;}
103 inline UpdateFuotaTaskRequest& WithFirmwareUpdateRole(const char* value) { SetFirmwareUpdateRole(value); return *this;}
105
107
108 inline int GetRedundancyPercent() const{ return m_redundancyPercent; }
109 inline bool RedundancyPercentHasBeenSet() const { return m_redundancyPercentHasBeenSet; }
110 inline void SetRedundancyPercent(int value) { m_redundancyPercentHasBeenSet = true; m_redundancyPercent = value; }
111 inline UpdateFuotaTaskRequest& WithRedundancyPercent(int value) { SetRedundancyPercent(value); return *this;}
113
115
116 inline int GetFragmentSizeBytes() const{ return m_fragmentSizeBytes; }
117 inline bool FragmentSizeBytesHasBeenSet() const { return m_fragmentSizeBytesHasBeenSet; }
118 inline void SetFragmentSizeBytes(int value) { m_fragmentSizeBytesHasBeenSet = true; m_fragmentSizeBytes = value; }
119 inline UpdateFuotaTaskRequest& WithFragmentSizeBytes(int value) { SetFragmentSizeBytes(value); return *this;}
121
123
124 inline int GetFragmentIntervalMS() const{ return m_fragmentIntervalMS; }
125 inline bool FragmentIntervalMSHasBeenSet() const { return m_fragmentIntervalMSHasBeenSet; }
126 inline void SetFragmentIntervalMS(int value) { m_fragmentIntervalMSHasBeenSet = true; m_fragmentIntervalMS = value; }
127 inline UpdateFuotaTaskRequest& WithFragmentIntervalMS(int value) { SetFragmentIntervalMS(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;
150 bool m_redundancyPercentHasBeenSet = false;
151
152 int m_fragmentSizeBytes;
153 bool m_fragmentSizeBytesHasBeenSet = false;
154
155 int m_fragmentIntervalMS;
156 bool m_fragmentIntervalMSHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace IoTWireless
161} // namespace Aws
UpdateFuotaTaskRequest & WithLoRaWAN(const LoRaWANFuotaTask &value)
UpdateFuotaTaskRequest & WithFirmwareUpdateImage(Aws::String &&value)
UpdateFuotaTaskRequest & WithLoRaWAN(LoRaWANFuotaTask &&value)
UpdateFuotaTaskRequest & WithId(const char *value)
UpdateFuotaTaskRequest & WithName(const char *value)
UpdateFuotaTaskRequest & WithId(Aws::String &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateFuotaTaskRequest & WithId(const Aws::String &value)
UpdateFuotaTaskRequest & WithFirmwareUpdateRole(const Aws::String &value)
UpdateFuotaTaskRequest & WithName(Aws::String &&value)
UpdateFuotaTaskRequest & WithRedundancyPercent(int value)
UpdateFuotaTaskRequest & WithFirmwareUpdateImage(const Aws::String &value)
UpdateFuotaTaskRequest & WithDescription(Aws::String &&value)
UpdateFuotaTaskRequest & WithFragmentIntervalMS(int value)
UpdateFuotaTaskRequest & WithFirmwareUpdateRole(const char *value)
UpdateFuotaTaskRequest & WithFragmentSizeBytes(int value)
UpdateFuotaTaskRequest & WithDescription(const char *value)
UpdateFuotaTaskRequest & WithFirmwareUpdateImage(const char *value)
UpdateFuotaTaskRequest & WithFirmwareUpdateRole(Aws::String &&value)
UpdateFuotaTaskRequest & WithDescription(const Aws::String &value)
UpdateFuotaTaskRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String