AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateWorkerConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafkaconnect/KafkaConnectRequest.h>
10#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace KafkaConnect {
16namespace Model {
17
21 public:
22 AWS_KAFKACONNECT_API CreateWorkerConfigurationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkerConfiguration"; }
29
30 AWS_KAFKACONNECT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDescription() const { return m_description; }
37 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
38 template <typename DescriptionT = Aws::String>
39 void SetDescription(DescriptionT&& value) {
40 m_descriptionHasBeenSet = true;
41 m_description = std::forward<DescriptionT>(value);
42 }
43 template <typename DescriptionT = Aws::String>
45 SetDescription(std::forward<DescriptionT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetPropertiesFileContent() const { return m_propertiesFileContent; }
73 inline bool PropertiesFileContentHasBeenSet() const { return m_propertiesFileContentHasBeenSet; }
74 template <typename PropertiesFileContentT = Aws::String>
75 void SetPropertiesFileContent(PropertiesFileContentT&& value) {
76 m_propertiesFileContentHasBeenSet = true;
77 m_propertiesFileContent = std::forward<PropertiesFileContentT>(value);
78 }
79 template <typename PropertiesFileContentT = Aws::String>
81 SetPropertiesFileContent(std::forward<PropertiesFileContentT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateWorkerConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_description;
111
112 Aws::String m_name;
113
114 Aws::String m_propertiesFileContent;
115
117 bool m_descriptionHasBeenSet = false;
118 bool m_nameHasBeenSet = false;
119 bool m_propertiesFileContentHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace KafkaConnect
125} // namespace Aws
CreateWorkerConfigurationRequest & WithDescription(DescriptionT &&value)
CreateWorkerConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_KAFKACONNECT_API Aws::String SerializePayload() const override
CreateWorkerConfigurationRequest & WithPropertiesFileContent(PropertiesFileContentT &&value)
AWS_KAFKACONNECT_API CreateWorkerConfigurationRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String