AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConfigurationRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/Array.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kafka
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KAFKA_API CreateConfigurationRequest() = 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 "CreateConfiguration"; }
33
34 AWS_KAFKA_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 CreateConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
58 inline const Aws::Vector<Aws::String>& GetKafkaVersions() const { return m_kafkaVersions; }
59 inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
60 template<typename KafkaVersionsT = Aws::Vector<Aws::String>>
61 void SetKafkaVersions(KafkaVersionsT&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::forward<KafkaVersionsT>(value); }
62 template<typename KafkaVersionsT = Aws::Vector<Aws::String>>
63 CreateConfigurationRequest& WithKafkaVersions(KafkaVersionsT&& value) { SetKafkaVersions(std::forward<KafkaVersionsT>(value)); return *this;}
64 template<typename KafkaVersionsT = Aws::String>
65 CreateConfigurationRequest& AddKafkaVersions(KafkaVersionsT&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.emplace_back(std::forward<KafkaVersionsT>(value)); return *this; }
67
69
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 CreateConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
93 inline const Aws::Utils::ByteBuffer& GetServerProperties() const { return m_serverProperties; }
94 inline bool ServerPropertiesHasBeenSet() const { return m_serverPropertiesHasBeenSet; }
95 template<typename ServerPropertiesT = Aws::Utils::ByteBuffer>
96 void SetServerProperties(ServerPropertiesT&& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = std::forward<ServerPropertiesT>(value); }
97 template<typename ServerPropertiesT = Aws::Utils::ByteBuffer>
98 CreateConfigurationRequest& WithServerProperties(ServerPropertiesT&& value) { SetServerProperties(std::forward<ServerPropertiesT>(value)); return *this;}
100 private:
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_kafkaVersions;
106 bool m_kafkaVersionsHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::Utils::ByteBuffer m_serverProperties{};
112 bool m_serverPropertiesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Kafka
117} // namespace Aws
AWS_KAFKA_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetKafkaVersions() const
const Aws::Utils::ByteBuffer & GetServerProperties() const
AWS_KAFKA_API CreateConfigurationRequest()=default
CreateConfigurationRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateConfigurationRequest & WithServerProperties(ServerPropertiesT &&value)
CreateConfigurationRequest & WithDescription(DescriptionT &&value)
CreateConfigurationRequest & AddKafkaVersions(KafkaVersionsT &&value)
CreateConfigurationRequest & WithKafkaVersions(KafkaVersionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector