/** * 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 UpdateClusterKafkaVersionRequest : public KafkaRequest { public: AWS_KAFKA_API UpdateClusterKafkaVersionRequest(); // 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 "UpdateClusterKafkaVersion"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline UpdateClusterKafkaVersionRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline UpdateClusterKafkaVersionRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline UpdateClusterKafkaVersionRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline const ConfigurationInfo& GetConfigurationInfo() const{ return m_configurationInfo; } /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; } /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline void SetConfigurationInfo(const ConfigurationInfo& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = value; } /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline void SetConfigurationInfo(ConfigurationInfo&& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = std::move(value); } /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline UpdateClusterKafkaVersionRequest& WithConfigurationInfo(const ConfigurationInfo& value) { SetConfigurationInfo(value); return *this;} /** *

The custom configuration that should be applied on the new * version of cluster.

*/ inline UpdateClusterKafkaVersionRequest& WithConfigurationInfo(ConfigurationInfo&& value) { SetConfigurationInfo(std::move(value)); return *this;} /** *

Current cluster version.

*/ inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; } /** *

Current cluster version.

*/ inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } /** *

Current cluster version.

*/ inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } /** *

Current cluster version.

*/ inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } /** *

Current cluster version.

*/ inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); } /** *

Current cluster version.

*/ inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;} /** *

Current cluster version.

*/ inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;} /** *

Current cluster version.

*/ inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;} /** *

Target Kafka version.

*/ inline const Aws::String& GetTargetKafkaVersion() const{ return m_targetKafkaVersion; } /** *

Target Kafka version.

*/ inline bool TargetKafkaVersionHasBeenSet() const { return m_targetKafkaVersionHasBeenSet; } /** *

Target Kafka version.

*/ inline void SetTargetKafkaVersion(const Aws::String& value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion = value; } /** *

Target Kafka version.

*/ inline void SetTargetKafkaVersion(Aws::String&& value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion = std::move(value); } /** *

Target Kafka version.

*/ inline void SetTargetKafkaVersion(const char* value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion.assign(value); } /** *

Target Kafka version.

*/ inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(const Aws::String& value) { SetTargetKafkaVersion(value); return *this;} /** *

Target Kafka version.

*/ inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(Aws::String&& value) { SetTargetKafkaVersion(std::move(value)); return *this;} /** *

Target Kafka version.

*/ inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(const char* value) { SetTargetKafkaVersion(value); return *this;} private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; ConfigurationInfo m_configurationInfo; bool m_configurationInfoHasBeenSet = false; Aws::String m_currentVersion; bool m_currentVersionHasBeenSet = false; Aws::String m_targetKafkaVersion; bool m_targetKafkaVersionHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws