/** * 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 KafkaConnect { namespace Model { /** */ class CreateCustomPluginRequest : public KafkaConnectRequest { public: AWS_KAFKACONNECT_API CreateCustomPluginRequest(); // 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 "CreateCustomPlugin"; } AWS_KAFKACONNECT_API Aws::String SerializePayload() const override; /** *

The type of the plugin file.

*/ inline const CustomPluginContentType& GetContentType() const{ return m_contentType; } /** *

The type of the plugin file.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The type of the plugin file.

*/ inline void SetContentType(const CustomPluginContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The type of the plugin file.

*/ inline void SetContentType(CustomPluginContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The type of the plugin file.

*/ inline CreateCustomPluginRequest& WithContentType(const CustomPluginContentType& value) { SetContentType(value); return *this;} /** *

The type of the plugin file.

*/ inline CreateCustomPluginRequest& WithContentType(CustomPluginContentType&& value) { SetContentType(std::move(value)); return *this;} /** *

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

A summary description of the custom plugin.

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

Information about the location of a custom plugin.

*/ inline const CustomPluginLocation& GetLocation() const{ return m_location; } /** *

Information about the location of a custom plugin.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

Information about the location of a custom plugin.

*/ inline void SetLocation(const CustomPluginLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

Information about the location of a custom plugin.

*/ inline void SetLocation(CustomPluginLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

Information about the location of a custom plugin.

*/ inline CreateCustomPluginRequest& WithLocation(const CustomPluginLocation& value) { SetLocation(value); return *this;} /** *

Information about the location of a custom plugin.

*/ inline CreateCustomPluginRequest& WithLocation(CustomPluginLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

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

The name of the custom plugin.

*/ inline CreateCustomPluginRequest& WithName(const char* value) { SetName(value); return *this;} private: CustomPluginContentType m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; CustomPluginLocation m_location; bool m_locationHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace KafkaConnect } // namespace Aws