AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateOtaTaskConfigurationRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/model/PushConfig.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTManagedIntegrations
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTMANAGEDINTEGRATIONS_API CreateOtaTaskConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateOtaTaskConfiguration"; }
33
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template<typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
45 template<typename DescriptionT = Aws::String>
46 CreateOtaTaskConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateOtaTaskConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const PushConfig& GetPushConfig() const { return m_pushConfig; }
66 inline bool PushConfigHasBeenSet() const { return m_pushConfigHasBeenSet; }
67 template<typename PushConfigT = PushConfig>
68 void SetPushConfig(PushConfigT&& value) { m_pushConfigHasBeenSet = true; m_pushConfig = std::forward<PushConfigT>(value); }
69 template<typename PushConfigT = PushConfig>
70 CreateOtaTaskConfigurationRequest& WithPushConfig(PushConfigT&& value) { SetPushConfig(std::forward<PushConfigT>(value)); return *this;}
72
74
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template<typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
83 template<typename ClientTokenT = Aws::String>
84 CreateOtaTaskConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
86 private:
87
88 Aws::String m_description;
89 bool m_descriptionHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 PushConfig m_pushConfig;
95 bool m_pushConfigHasBeenSet = false;
96
98 bool m_clientTokenHasBeenSet = true;
99 };
100
101} // namespace Model
102} // namespace IoTManagedIntegrations
103} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API CreateOtaTaskConfigurationRequest()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateOtaTaskConfigurationRequest & WithDescription(DescriptionT &&value)
CreateOtaTaskConfigurationRequest & WithPushConfig(PushConfigT &&value)
CreateOtaTaskConfigurationRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String