AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateStorageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ProvisionedThroughput.h>
11#include <aws/kafka/model/StorageMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kafka {
17namespace Model {
18
28 public:
29 AWS_KAFKA_API UpdateStorageRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateStorage"; }
36
37 AWS_KAFKA_API Aws::String SerializePayload() const override;
38
40
46 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
47 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
48 template <typename ClusterArnT = Aws::String>
49 void SetClusterArn(ClusterArnT&& value) {
50 m_clusterArnHasBeenSet = true;
51 m_clusterArn = std::forward<ClusterArnT>(value);
52 }
53 template <typename ClusterArnT = Aws::String>
54 UpdateStorageRequest& WithClusterArn(ClusterArnT&& value) {
55 SetClusterArn(std::forward<ClusterArnT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
68 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
69 template <typename CurrentVersionT = Aws::String>
70 void SetCurrentVersion(CurrentVersionT&& value) {
71 m_currentVersionHasBeenSet = true;
72 m_currentVersion = std::forward<CurrentVersionT>(value);
73 }
74 template <typename CurrentVersionT = Aws::String>
75 UpdateStorageRequest& WithCurrentVersion(CurrentVersionT&& value) {
76 SetCurrentVersion(std::forward<CurrentVersionT>(value));
77 return *this;
78 }
80
82
87 inline const ProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
88 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
89 template <typename ProvisionedThroughputT = ProvisionedThroughput>
90 void SetProvisionedThroughput(ProvisionedThroughputT&& value) {
91 m_provisionedThroughputHasBeenSet = true;
92 m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value);
93 }
94 template <typename ProvisionedThroughputT = ProvisionedThroughput>
95 UpdateStorageRequest& WithProvisionedThroughput(ProvisionedThroughputT&& value) {
96 SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value));
97 return *this;
98 }
100
102
107 inline StorageMode GetStorageMode() const { return m_storageMode; }
108 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
109 inline void SetStorageMode(StorageMode value) {
110 m_storageModeHasBeenSet = true;
111 m_storageMode = value;
112 }
114 SetStorageMode(value);
115 return *this;
116 }
118
120
125 inline int GetVolumeSizeGB() const { return m_volumeSizeGB; }
126 inline bool VolumeSizeGBHasBeenSet() const { return m_volumeSizeGBHasBeenSet; }
127 inline void SetVolumeSizeGB(int value) {
128 m_volumeSizeGBHasBeenSet = true;
129 m_volumeSizeGB = value;
130 }
132 SetVolumeSizeGB(value);
133 return *this;
134 }
136 private:
137 Aws::String m_clusterArn;
138
139 Aws::String m_currentVersion;
140
141 ProvisionedThroughput m_provisionedThroughput;
142
143 StorageMode m_storageMode{StorageMode::NOT_SET};
144
145 int m_volumeSizeGB{0};
146 bool m_clusterArnHasBeenSet = false;
147 bool m_currentVersionHasBeenSet = false;
148 bool m_provisionedThroughputHasBeenSet = false;
149 bool m_storageModeHasBeenSet = false;
150 bool m_volumeSizeGBHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Kafka
155} // 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