AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
53 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
54 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
55 inline UpdateStorageRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
56 inline UpdateStorageRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
57 inline UpdateStorageRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
59
61
67 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
68 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
69 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
70 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
71 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
72 inline UpdateStorageRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
73 inline UpdateStorageRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
74 inline UpdateStorageRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
76
78
83 inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; }
84 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
85 inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
86 inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); }
90
92
97 inline const StorageMode& GetStorageMode() const{ return m_storageMode; }
98 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
99 inline void SetStorageMode(const StorageMode& value) { m_storageModeHasBeenSet = true; m_storageMode = value; }
100 inline void SetStorageMode(StorageMode&& value) { m_storageModeHasBeenSet = true; m_storageMode = std::move(value); }
101 inline UpdateStorageRequest& WithStorageMode(const StorageMode& value) { SetStorageMode(value); return *this;}
102 inline UpdateStorageRequest& WithStorageMode(StorageMode&& value) { SetStorageMode(std::move(value)); return *this;}
104
106
111 inline int GetVolumeSizeGB() const{ return m_volumeSizeGB; }
112 inline bool VolumeSizeGBHasBeenSet() const { return m_volumeSizeGBHasBeenSet; }
113 inline void SetVolumeSizeGB(int value) { m_volumeSizeGBHasBeenSet = true; m_volumeSizeGB = value; }
114 inline UpdateStorageRequest& WithVolumeSizeGB(int value) { SetVolumeSizeGB(value); return *this;}
116 private:
117
118 Aws::String m_clusterArn;
119 bool m_clusterArnHasBeenSet = false;
120
121 Aws::String m_currentVersion;
122 bool m_currentVersionHasBeenSet = false;
123
124 ProvisionedThroughput m_provisionedThroughput;
125 bool m_provisionedThroughputHasBeenSet = false;
126
127 StorageMode m_storageMode;
128 bool m_storageModeHasBeenSet = false;
129
130 int m_volumeSizeGB;
131 bool m_volumeSizeGBHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Kafka
136} // namespace Aws
UpdateStorageRequest & WithClusterArn(const Aws::String &value)
UpdateStorageRequest & WithClusterArn(Aws::String &&value)
UpdateStorageRequest & WithCurrentVersion(const char *value)
void SetProvisionedThroughput(const ProvisionedThroughput &value)
UpdateStorageRequest & WithStorageMode(const StorageMode &value)
void SetProvisionedThroughput(ProvisionedThroughput &&value)
UpdateStorageRequest & WithProvisionedThroughput(ProvisionedThroughput &&value)
void SetStorageMode(const StorageMode &value)
virtual const char * GetServiceRequestName() const override
UpdateStorageRequest & WithVolumeSizeGB(int value)
UpdateStorageRequest & WithCurrentVersion(const Aws::String &value)
UpdateStorageRequest & WithCurrentVersion(Aws::String &&value)
void SetCurrentVersion(const Aws::String &value)
UpdateStorageRequest & WithStorageMode(StorageMode &&value)
UpdateStorageRequest & WithClusterArn(const char *value)
const ProvisionedThroughput & GetProvisionedThroughput() const
AWS_KAFKA_API Aws::String SerializePayload() const override
UpdateStorageRequest & WithProvisionedThroughput(const ProvisionedThroughput &value)
const Aws::String & GetCurrentVersion() const
void SetClusterArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String