AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateBrokerStorageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/KafkaRequest.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/BrokerEBSVolumeInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kafka {
17namespace Model {
18
22 public:
23 AWS_KAFKA_API UpdateBrokerStorageRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateBrokerStorage"; }
30
31 AWS_KAFKA_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
41 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
42 template <typename ClusterArnT = Aws::String>
43 void SetClusterArn(ClusterArnT&& value) {
44 m_clusterArnHasBeenSet = true;
45 m_clusterArn = std::forward<ClusterArnT>(value);
46 }
47 template <typename ClusterArnT = Aws::String>
49 SetClusterArn(std::forward<ClusterArnT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
62 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
63 template <typename CurrentVersionT = Aws::String>
64 void SetCurrentVersion(CurrentVersionT&& value) {
65 m_currentVersionHasBeenSet = true;
66 m_currentVersion = std::forward<CurrentVersionT>(value);
67 }
68 template <typename CurrentVersionT = Aws::String>
70 SetCurrentVersion(std::forward<CurrentVersionT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::Vector<BrokerEBSVolumeInfo>& GetTargetBrokerEBSVolumeInfo() const { return m_targetBrokerEBSVolumeInfo; }
83 inline bool TargetBrokerEBSVolumeInfoHasBeenSet() const { return m_targetBrokerEBSVolumeInfoHasBeenSet; }
84 template <typename TargetBrokerEBSVolumeInfoT = Aws::Vector<BrokerEBSVolumeInfo>>
85 void SetTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT&& value) {
86 m_targetBrokerEBSVolumeInfoHasBeenSet = true;
87 m_targetBrokerEBSVolumeInfo = std::forward<TargetBrokerEBSVolumeInfoT>(value);
88 }
89 template <typename TargetBrokerEBSVolumeInfoT = Aws::Vector<BrokerEBSVolumeInfo>>
90 UpdateBrokerStorageRequest& WithTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT&& value) {
91 SetTargetBrokerEBSVolumeInfo(std::forward<TargetBrokerEBSVolumeInfoT>(value));
92 return *this;
93 }
94 template <typename TargetBrokerEBSVolumeInfoT = BrokerEBSVolumeInfo>
95 UpdateBrokerStorageRequest& AddTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT&& value) {
96 m_targetBrokerEBSVolumeInfoHasBeenSet = true;
97 m_targetBrokerEBSVolumeInfo.emplace_back(std::forward<TargetBrokerEBSVolumeInfoT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_clusterArn;
103
104 Aws::String m_currentVersion;
105
106 Aws::Vector<BrokerEBSVolumeInfo> m_targetBrokerEBSVolumeInfo;
107 bool m_clusterArnHasBeenSet = false;
108 bool m_currentVersionHasBeenSet = false;
109 bool m_targetBrokerEBSVolumeInfoHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Kafka
114} // namespace Aws
void SetTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API UpdateBrokerStorageRequest()=default
AWS_KAFKA_API Aws::String SerializePayload() const override
UpdateBrokerStorageRequest & AddTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT &&value)
UpdateBrokerStorageRequest & WithTargetBrokerEBSVolumeInfo(TargetBrokerEBSVolumeInfoT &&value)
const Aws::Vector< BrokerEBSVolumeInfo > & GetTargetBrokerEBSVolumeInfo() const
UpdateBrokerStorageRequest & WithClusterArn(ClusterArnT &&value)
UpdateBrokerStorageRequest & WithCurrentVersion(CurrentVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector