AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline CreateConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline CreateConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline CreateConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetKafkaVersions() const{ return m_kafkaVersions; }
61 inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
62 inline void SetKafkaVersions(const Aws::Vector<Aws::String>& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; }
63 inline void SetKafkaVersions(Aws::Vector<Aws::String>&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); }
66 inline CreateConfigurationRequest& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
67 inline CreateConfigurationRequest& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; }
68 inline CreateConfigurationRequest& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
70
72
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline CreateConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline CreateConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline CreateConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
86
88
98 inline const Aws::Utils::ByteBuffer& GetServerProperties() const{ return m_serverProperties; }
99 inline bool ServerPropertiesHasBeenSet() const { return m_serverPropertiesHasBeenSet; }
100 inline void SetServerProperties(const Aws::Utils::ByteBuffer& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = value; }
101 inline void SetServerProperties(Aws::Utils::ByteBuffer&& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = std::move(value); }
105 private:
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_kafkaVersions;
111 bool m_kafkaVersionsHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::Utils::ByteBuffer m_serverProperties;
117 bool m_serverPropertiesHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Kafka
122} // namespace Aws
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateConfigurationRequest & WithDescription(const char *value)
const Aws::Vector< Aws::String > & GetKafkaVersions() const
CreateConfigurationRequest & WithServerProperties(Aws::Utils::ByteBuffer &&value)
CreateConfigurationRequest & WithName(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetServerProperties() const
CreateConfigurationRequest & AddKafkaVersions(const char *value)
CreateConfigurationRequest & WithKafkaVersions(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateConfigurationRequest & WithServerProperties(const Aws::Utils::ByteBuffer &value)
void SetKafkaVersions(Aws::Vector< Aws::String > &&value)
CreateConfigurationRequest & AddKafkaVersions(Aws::String &&value)
CreateConfigurationRequest & WithDescription(const Aws::String &value)
CreateConfigurationRequest & AddKafkaVersions(const Aws::String &value)
CreateConfigurationRequest & WithName(const Aws::String &value)
void SetServerProperties(Aws::Utils::ByteBuffer &&value)
CreateConfigurationRequest & WithName(const char *value)
CreateConfigurationRequest & WithKafkaVersions(Aws::Vector< Aws::String > &&value)
CreateConfigurationRequest & WithDescription(Aws::String &&value)
void SetKafkaVersions(const Aws::Vector< Aws::String > &value)
void SetServerProperties(const Aws::Utils::ByteBuffer &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector