AWS SDK for C++  1.9.104
AWS SDK for C++
CreateConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Kafka
17 {
18 namespace 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::String SerializePayload() const override;
35 
36 
42  inline const Aws::String& GetDescription() const{ return m_description; }
43 
49  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
63  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 
70  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 
77  inline CreateConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 
84  inline CreateConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 
91  inline CreateConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
92 
93 
100  inline const Aws::Vector<Aws::String>& GetKafkaVersions() const{ return m_kafkaVersions; }
101 
108  inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
109 
116  inline void SetKafkaVersions(const Aws::Vector<Aws::String>& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; }
117 
124  inline void SetKafkaVersions(Aws::Vector<Aws::String>&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); }
125 
132  inline CreateConfigurationRequest& WithKafkaVersions(const Aws::Vector<Aws::String>& value) { SetKafkaVersions(value); return *this;}
133 
140  inline CreateConfigurationRequest& WithKafkaVersions(Aws::Vector<Aws::String>&& value) { SetKafkaVersions(std::move(value)); return *this;}
141 
148  inline CreateConfigurationRequest& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
149 
156  inline CreateConfigurationRequest& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; }
157 
164  inline CreateConfigurationRequest& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
165 
166 
172  inline const Aws::String& GetName() const{ return m_name; }
173 
179  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
180 
186  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
187 
193  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
194 
200  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
201 
207  inline CreateConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
208 
214  inline CreateConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
215 
221  inline CreateConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
222 
223 
234  inline const Aws::Utils::ByteBuffer& GetServerProperties() const{ return m_serverProperties; }
235 
246  inline bool ServerPropertiesHasBeenSet() const { return m_serverPropertiesHasBeenSet; }
247 
258  inline void SetServerProperties(const Aws::Utils::ByteBuffer& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = value; }
259 
270  inline void SetServerProperties(Aws::Utils::ByteBuffer&& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = std::move(value); }
271 
282  inline CreateConfigurationRequest& WithServerProperties(const Aws::Utils::ByteBuffer& value) { SetServerProperties(value); return *this;}
283 
294  inline CreateConfigurationRequest& WithServerProperties(Aws::Utils::ByteBuffer&& value) { SetServerProperties(std::move(value)); return *this;}
295 
296  private:
297 
298  Aws::String m_description;
299  bool m_descriptionHasBeenSet;
300 
301  Aws::Vector<Aws::String> m_kafkaVersions;
302  bool m_kafkaVersionsHasBeenSet;
303 
304  Aws::String m_name;
305  bool m_nameHasBeenSet;
306 
307  Aws::Utils::ByteBuffer m_serverProperties;
308  bool m_serverPropertiesHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace Kafka
313 } // namespace Aws
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Kafka::Model::CreateConfigurationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateConfigurationRequest.h:56
Aws::Kafka::Model::CreateConfigurationRequest::GetKafkaVersions
const Aws::Vector< Aws::String > & GetKafkaVersions() const
Definition: CreateConfigurationRequest.h:100
Aws::Kafka::Model::CreateConfigurationRequest::WithServerProperties
CreateConfigurationRequest & WithServerProperties(Aws::Utils::ByteBuffer &&value)
Definition: CreateConfigurationRequest.h:294
Aws::Kafka::Model::CreateConfigurationRequest::SetServerProperties
void SetServerProperties(Aws::Utils::ByteBuffer &&value)
Definition: CreateConfigurationRequest.h:270
Aws::Kafka::Model::CreateConfigurationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateConfigurationRequest.h:186
Aws::Kafka::Model::CreateConfigurationRequest::AddKafkaVersions
CreateConfigurationRequest & AddKafkaVersions(const char *value)
Definition: CreateConfigurationRequest.h:164
Aws::Kafka::Model::CreateConfigurationRequest::AddKafkaVersions
CreateConfigurationRequest & AddKafkaVersions(const Aws::String &value)
Definition: CreateConfigurationRequest.h:148
Aws::Kafka::Model::CreateConfigurationRequest::SetName
void SetName(const char *value)
Definition: CreateConfigurationRequest.h:200
Aws::Kafka::Model::CreateConfigurationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateConfigurationRequest.h:193
Aws::Kafka::Model::CreateConfigurationRequest
Definition: CreateConfigurationRequest.h:24
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kafka::Model::CreateConfigurationRequest::WithDescription
CreateConfigurationRequest & WithDescription(const Aws::String &value)
Definition: CreateConfigurationRequest.h:77
AWSVector.h
Aws::Kafka::Model::CreateConfigurationRequest::ServerPropertiesHasBeenSet
bool ServerPropertiesHasBeenSet() const
Definition: CreateConfigurationRequest.h:246
Aws::Kafka::Model::CreateConfigurationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateConfigurationRequest.h:179
Aws::Kafka::Model::CreateConfigurationRequest::WithDescription
CreateConfigurationRequest & WithDescription(Aws::String &&value)
Definition: CreateConfigurationRequest.h:84
Aws::Kafka::Model::CreateConfigurationRequest::SetKafkaVersions
void SetKafkaVersions(const Aws::Vector< Aws::String > &value)
Definition: CreateConfigurationRequest.h:116
Aws::Kafka::Model::CreateConfigurationRequest::CreateConfigurationRequest
CreateConfigurationRequest()
Aws::Kafka::Model::CreateConfigurationRequest::WithName
CreateConfigurationRequest & WithName(const char *value)
Definition: CreateConfigurationRequest.h:221
Aws::Kafka::Model::CreateConfigurationRequest::SetServerProperties
void SetServerProperties(const Aws::Utils::ByteBuffer &value)
Definition: CreateConfigurationRequest.h:258
Aws::Kafka::Model::CreateConfigurationRequest::WithServerProperties
CreateConfigurationRequest & WithServerProperties(const Aws::Utils::ByteBuffer &value)
Definition: CreateConfigurationRequest.h:282
Aws::Kafka::Model::CreateConfigurationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateConfigurationRequest.h:63
Aws::Kafka::Model::CreateConfigurationRequest::WithDescription
CreateConfigurationRequest & WithDescription(const char *value)
Definition: CreateConfigurationRequest.h:91
Aws::Kafka::Model::CreateConfigurationRequest::WithName
CreateConfigurationRequest & WithName(const Aws::String &value)
Definition: CreateConfigurationRequest.h:207
Aws::Kafka::Model::CreateConfigurationRequest::SetKafkaVersions
void SetKafkaVersions(Aws::Vector< Aws::String > &&value)
Definition: CreateConfigurationRequest.h:124
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Kafka::Model::CreateConfigurationRequest::WithName
CreateConfigurationRequest & WithName(Aws::String &&value)
Definition: CreateConfigurationRequest.h:214
Aws::Kafka::Model::CreateConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::CreateConfigurationRequest::GetName
const Aws::String & GetName() const
Definition: CreateConfigurationRequest.h:172
Aws::Kafka::Model::CreateConfigurationRequest::AddKafkaVersions
CreateConfigurationRequest & AddKafkaVersions(Aws::String &&value)
Definition: CreateConfigurationRequest.h:156
Aws::Kafka::Model::CreateConfigurationRequest::WithKafkaVersions
CreateConfigurationRequest & WithKafkaVersions(Aws::Vector< Aws::String > &&value)
Definition: CreateConfigurationRequest.h:140
Aws::Kafka::Model::CreateConfigurationRequest::KafkaVersionsHasBeenSet
bool KafkaVersionsHasBeenSet() const
Definition: CreateConfigurationRequest.h:108
Aws::Kafka::Model::CreateConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConfigurationRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::Kafka::Model::CreateConfigurationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateConfigurationRequest.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::CreateConfigurationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateConfigurationRequest.h:42
Aws::Kafka::Model::CreateConfigurationRequest::GetServerProperties
const Aws::Utils::ByteBuffer & GetServerProperties() const
Definition: CreateConfigurationRequest.h:234
Aws::Kafka::Model::CreateConfigurationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateConfigurationRequest.h:49
Aws::Kafka::Model::CreateConfigurationRequest::WithKafkaVersions
CreateConfigurationRequest & WithKafkaVersions(const Aws::Vector< Aws::String > &value)
Definition: CreateConfigurationRequest.h:132