AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateStorageRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kafka/model/ProvisionedThroughput.h>
11#include <aws/kafka/model/StorageMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kafka
17{
18namespace Model
19{
20
30 {
31 public:
32 AWS_KAFKA_API UpdateStorageRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateStorage"; }
39
40 AWS_KAFKA_API Aws::String SerializePayload() const override;
41
42
44
50 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
51 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
52 template<typename ClusterArnT = Aws::String>
53 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
54 template<typename ClusterArnT = Aws::String>
55 UpdateStorageRequest& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
57
59
65 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
66 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
67 template<typename CurrentVersionT = Aws::String>
68 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
69 template<typename CurrentVersionT = Aws::String>
70 UpdateStorageRequest& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
72
74
79 inline const ProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
80 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
81 template<typename ProvisionedThroughputT = ProvisionedThroughput>
82 void SetProvisionedThroughput(ProvisionedThroughputT&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value); }
83 template<typename ProvisionedThroughputT = ProvisionedThroughput>
84 UpdateStorageRequest& WithProvisionedThroughput(ProvisionedThroughputT&& value) { SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value)); return *this;}
86
88
93 inline StorageMode GetStorageMode() const { return m_storageMode; }
94 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
95 inline void SetStorageMode(StorageMode value) { m_storageModeHasBeenSet = true; m_storageMode = value; }
96 inline UpdateStorageRequest& WithStorageMode(StorageMode value) { SetStorageMode(value); return *this;}
98
100
105 inline int GetVolumeSizeGB() const { return m_volumeSizeGB; }
106 inline bool VolumeSizeGBHasBeenSet() const { return m_volumeSizeGBHasBeenSet; }
107 inline void SetVolumeSizeGB(int value) { m_volumeSizeGBHasBeenSet = true; m_volumeSizeGB = value; }
108 inline UpdateStorageRequest& WithVolumeSizeGB(int value) { SetVolumeSizeGB(value); return *this;}
110 private:
111
112 Aws::String m_clusterArn;
113 bool m_clusterArnHasBeenSet = false;
114
115 Aws::String m_currentVersion;
116 bool m_currentVersionHasBeenSet = false;
117
118 ProvisionedThroughput m_provisionedThroughput;
119 bool m_provisionedThroughputHasBeenSet = false;
120
121 StorageMode m_storageMode{StorageMode::NOT_SET};
122 bool m_storageModeHasBeenSet = false;
123
124 int m_volumeSizeGB{0};
125 bool m_volumeSizeGBHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Kafka
130} // namespace Aws
UpdateStorageRequest & WithProvisionedThroughput(ProvisionedThroughputT &&value)
UpdateStorageRequest & WithStorageMode(StorageMode value)
virtual const char * GetServiceRequestName() const override
UpdateStorageRequest & WithVolumeSizeGB(int value)
UpdateStorageRequest & WithCurrentVersion(CurrentVersionT &&value)
UpdateStorageRequest & WithClusterArn(ClusterArnT &&value)
const ProvisionedThroughput & GetProvisionedThroughput() const
AWS_KAFKA_API UpdateStorageRequest()=default
AWS_KAFKA_API Aws::String SerializePayload() const override
const Aws::String & GetCurrentVersion() const
void SetProvisionedThroughput(ProvisionedThroughputT &&value)
void SetCurrentVersion(CurrentVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String