AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCustomPluginRequest.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/KafkaConnectRequest.h>
9#include <aws/kafkaconnect/model/CustomPluginContentType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kafkaconnect/model/CustomPluginLocation.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace KafkaConnect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KAFKACONNECT_API CreateCustomPluginRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomPlugin"; }
34
35 AWS_KAFKACONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline CustomPluginContentType GetContentType() const { return m_contentType; }
43 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
44 inline void SetContentType(CustomPluginContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 CreateCustomPluginRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
64 inline const CustomPluginLocation& GetLocation() const { return m_location; }
65 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
66 template<typename LocationT = CustomPluginLocation>
67 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
68 template<typename LocationT = CustomPluginLocation>
69 CreateCustomPluginRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 CreateCustomPluginRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 CreateCustomPluginRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
95 CreateCustomPluginRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
96 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
97 }
99 private:
100
102 bool m_contentTypeHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106
107 CustomPluginLocation m_location;
108 bool m_locationHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace KafkaConnect
119} // 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