/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Kafka { namespace Model { /** */ class CreateConfigurationRequest : public KafkaRequest { public: AWS_KAFKA_API CreateConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateConfiguration"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The description of the configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the configuration.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the configuration.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the configuration.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the configuration.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the configuration.

*/ inline CreateConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the configuration.

*/ inline CreateConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the configuration.

*/ inline CreateConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline const Aws::Vector& GetKafkaVersions() const{ return m_kafkaVersions; } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline void SetKafkaVersions(const Aws::Vector& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline void SetKafkaVersions(Aws::Vector&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline CreateConfigurationRequest& WithKafkaVersions(const Aws::Vector& value) { SetKafkaVersions(value); return *this;} /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline CreateConfigurationRequest& WithKafkaVersions(Aws::Vector&& value) { SetKafkaVersions(std::move(value)); return *this;} /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline CreateConfigurationRequest& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline CreateConfigurationRequest& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; } /** *

The versions of Apache Kafka with which you can use this MSK * configuration.

*/ inline CreateConfigurationRequest& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; } /** *

The name of the configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the configuration.

*/ inline CreateConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the configuration.

*/ inline CreateConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the configuration.

*/ inline CreateConfigurationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline const Aws::Utils::ByteBuffer& GetServerProperties() const{ return m_serverProperties; } /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline bool ServerPropertiesHasBeenSet() const { return m_serverPropertiesHasBeenSet; } /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline void SetServerProperties(const Aws::Utils::ByteBuffer& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = value; } /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline void SetServerProperties(Aws::Utils::ByteBuffer&& value) { m_serverPropertiesHasBeenSet = true; m_serverProperties = std::move(value); } /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline CreateConfigurationRequest& WithServerProperties(const Aws::Utils::ByteBuffer& value) { SetServerProperties(value); return *this;} /** *

Contents of the server.properties file. * When using the API, you must ensure that the contents of the file are base64 * encoded. When using the AWS Management Console, the SDK, or the * AWS CLI, the contents of server.properties can be in * plaintext.

*/ inline CreateConfigurationRequest& WithServerProperties(Aws::Utils::ByteBuffer&& value) { SetServerProperties(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_kafkaVersions; bool m_kafkaVersionsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::ByteBuffer m_serverProperties; bool m_serverPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws