281 lines
8.0 KiB
C++
281 lines
8.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kafka/Kafka_EXPORTS.h>
|
|
#include <aws/kafka/KafkaRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/kafka/model/ConfigurationInfo.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Kafka
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_KAFKA_API UpdateClusterKafkaVersionRequest : public KafkaRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>The Amazon Resource Name (ARN) of the cluster to be
|
|
* updated.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline const ConfigurationInfo& GetConfigurationInfo() const{ return m_configurationInfo; }
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline void SetConfigurationInfo(const ConfigurationInfo& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = value; }
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline void SetConfigurationInfo(ConfigurationInfo&& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = std::move(value); }
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithConfigurationInfo(const ConfigurationInfo& value) { SetConfigurationInfo(value); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>The custom configuration that should be applied on the new
|
|
* version of cluster.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithConfigurationInfo(ConfigurationInfo&& value) { SetConfigurationInfo(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>Current cluster version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline const Aws::String& GetTargetKafkaVersion() const{ return m_targetKafkaVersion; }
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline bool TargetKafkaVersionHasBeenSet() const { return m_targetKafkaVersionHasBeenSet; }
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline void SetTargetKafkaVersion(const Aws::String& value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion = value; }
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline void SetTargetKafkaVersion(Aws::String&& value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion = std::move(value); }
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline void SetTargetKafkaVersion(const char* value) { m_targetKafkaVersionHasBeenSet = true; m_targetKafkaVersion.assign(value); }
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(const Aws::String& value) { SetTargetKafkaVersion(value); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(Aws::String&& value) { SetTargetKafkaVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
*
|
|
<p>Target Kafka version.</p>
|
|
|
|
*/
|
|
inline UpdateClusterKafkaVersionRequest& WithTargetKafkaVersion(const char* value) { SetTargetKafkaVersion(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_clusterArn;
|
|
bool m_clusterArnHasBeenSet;
|
|
|
|
ConfigurationInfo m_configurationInfo;
|
|
bool m_configurationInfoHasBeenSet;
|
|
|
|
Aws::String m_currentVersion;
|
|
bool m_currentVersionHasBeenSet;
|
|
|
|
Aws::String m_targetKafkaVersion;
|
|
bool m_targetKafkaVersionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Kafka
|
|
} // namespace Aws
|