/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Kafka { namespace Model { /** */ class UpdateConfigurationRequest : public KafkaRequest { public: AWS_KAFKA_API UpdateConfigurationRequest(); // 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 "UpdateConfiguration"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline UpdateConfigurationRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline UpdateConfigurationRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline UpdateConfigurationRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

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

The description of the configuration revision.

*/ inline UpdateConfigurationRequest& WithDescription(const char* value) { SetDescription(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 UpdateConfigurationRequest& 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 UpdateConfigurationRequest& WithServerProperties(Aws::Utils::ByteBuffer&& value) { SetServerProperties(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::ByteBuffer m_serverProperties; bool m_serverPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws