AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateCustomPluginRequest.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#include <aws/kafkaconnect/model/CustomPluginContentType.h>
12#include <aws/kafkaconnect/model/CustomPluginLocation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace KafkaConnect {
18namespace Model {
19
23 public:
24 AWS_KAFKACONNECT_API CreateCustomPluginRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomPlugin"; }
31
32 AWS_KAFKACONNECT_API Aws::String SerializePayload() const override;
33
35
38 inline CustomPluginContentType GetContentType() const { return m_contentType; }
39 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
41 m_contentTypeHasBeenSet = true;
42 m_contentType = value;
43 }
45 SetContentType(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const CustomPluginLocation& GetLocation() const { return m_location; }
73 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
74 template <typename LocationT = CustomPluginLocation>
75 void SetLocation(LocationT&& value) {
76 m_locationHasBeenSet = true;
77 m_location = std::forward<LocationT>(value);
78 }
79 template <typename LocationT = CustomPluginLocation>
81 SetLocation(std::forward<LocationT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateCustomPluginRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::String m_description;
131
132 CustomPluginLocation m_location;
133
134 Aws::String m_name;
135
137 bool m_contentTypeHasBeenSet = false;
138 bool m_descriptionHasBeenSet = false;
139 bool m_locationHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace KafkaConnect
146} // namespace Aws
CreateCustomPluginRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKACONNECT_API CreateCustomPluginRequest()=default
CreateCustomPluginRequest & WithLocation(LocationT &&value)
CreateCustomPluginRequest & WithName(NameT &&value)
CreateCustomPluginRequest & WithTags(TagsT &&value)
CreateCustomPluginRequest & WithDescription(DescriptionT &&value)
CreateCustomPluginRequest & WithContentType(CustomPluginContentType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_KAFKACONNECT_API Aws::String SerializePayload() const override
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