AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWirelessGatewayTaskDefinitionRequest.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/UpdateWirelessGatewayTaskCreate.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 CreateWirelessGatewayTaskDefinitionRequest() = 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 "CreateWirelessGatewayTaskDefinition"; }
35
36 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
37
38
40
45 inline bool GetAutoCreateTasks() const { return m_autoCreateTasks; }
46 inline bool AutoCreateTasksHasBeenSet() const { return m_autoCreateTasksHasBeenSet; }
47 inline void SetAutoCreateTasks(bool value) { m_autoCreateTasksHasBeenSet = true; m_autoCreateTasks = value; }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateWirelessGatewayTaskDefinitionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const UpdateWirelessGatewayTaskCreate& GetUpdate() const { return m_update; }
68 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
69 template<typename UpdateT = UpdateWirelessGatewayTaskCreate>
70 void SetUpdate(UpdateT&& value) { m_updateHasBeenSet = true; m_update = std::forward<UpdateT>(value); }
71 template<typename UpdateT = UpdateWirelessGatewayTaskCreate>
72 CreateWirelessGatewayTaskDefinitionRequest& WithUpdate(UpdateT&& value) { SetUpdate(std::forward<UpdateT>(value)); return *this;}
74
76
87 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
88 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
89 template<typename ClientRequestTokenT = Aws::String>
90 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
91 template<typename ClientRequestTokenT = Aws::String>
92 CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
94
96
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Vector<Tag>>
105 CreateWirelessGatewayTaskDefinitionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsT = Tag>
107 CreateWirelessGatewayTaskDefinitionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
109 private:
110
111 bool m_autoCreateTasks{false};
112 bool m_autoCreateTasksHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 UpdateWirelessGatewayTaskCreate m_update;
118 bool m_updateHasBeenSet = false;
119
120 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
121 bool m_clientRequestTokenHasBeenSet = true;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IoTWireless
129} // namespace Aws
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateWirelessGatewayTaskDefinitionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector