/** * 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 { /** *

Request object for UpdateStorage api. Its used to update the * storage attributes for the cluster.

See Also:

AWS * API Reference

*/ class UpdateStorageRequest : public KafkaRequest { public: AWS_KAFKA_API UpdateStorageRequest(); // 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 "UpdateStorage"; } 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 UpdateStorageRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

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

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

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

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

The version of cluster to update from. A successful operation * will then generate a new version.

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

EBS volume provisioned throughput information.

*/ inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; } /** *

EBS volume provisioned throughput information.

*/ inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; } /** *

EBS volume provisioned throughput information.

*/ inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; } /** *

EBS volume provisioned throughput information.

*/ inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); } /** *

EBS volume provisioned throughput information.

*/ inline UpdateStorageRequest& WithProvisionedThroughput(const ProvisionedThroughput& value) { SetProvisionedThroughput(value); return *this;} /** *

EBS volume provisioned throughput information.

*/ inline UpdateStorageRequest& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} /** *

Controls storage mode for supported storage tiers.

*/ inline const StorageMode& GetStorageMode() const{ return m_storageMode; } /** *

Controls storage mode for supported storage tiers.

*/ inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; } /** *

Controls storage mode for supported storage tiers.

*/ inline void SetStorageMode(const StorageMode& value) { m_storageModeHasBeenSet = true; m_storageMode = value; } /** *

Controls storage mode for supported storage tiers.

*/ inline void SetStorageMode(StorageMode&& value) { m_storageModeHasBeenSet = true; m_storageMode = std::move(value); } /** *

Controls storage mode for supported storage tiers.

*/ inline UpdateStorageRequest& WithStorageMode(const StorageMode& value) { SetStorageMode(value); return *this;} /** *

Controls storage mode for supported storage tiers.

*/ inline UpdateStorageRequest& WithStorageMode(StorageMode&& value) { SetStorageMode(std::move(value)); return *this;} /** *

size of the EBS volume to update.

*/ inline int GetVolumeSizeGB() const{ return m_volumeSizeGB; } /** *

size of the EBS volume to update.

*/ inline bool VolumeSizeGBHasBeenSet() const { return m_volumeSizeGBHasBeenSet; } /** *

size of the EBS volume to update.

*/ inline void SetVolumeSizeGB(int value) { m_volumeSizeGBHasBeenSet = true; m_volumeSizeGB = value; } /** *

size of the EBS volume to update.

*/ inline UpdateStorageRequest& WithVolumeSizeGB(int value) { SetVolumeSizeGB(value); return *this;} private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::String m_currentVersion; bool m_currentVersionHasBeenSet = false; ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; StorageMode m_storageMode; bool m_storageModeHasBeenSet = false; int m_volumeSizeGB; bool m_volumeSizeGBHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws