AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateMonitoringRequest.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/EnhancedMonitoring.h>
11#include <aws/kafka/model/LoggingInfo.h>
12#include <aws/kafka/model/OpenMonitoringInfo.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Kafka {
18namespace Model {
19
26 public:
27 AWS_KAFKA_API UpdateMonitoringRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateMonitoring"; }
34
35 AWS_KAFKA_API Aws::String SerializePayload() const override;
36
38
44 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
45 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
46 template <typename ClusterArnT = Aws::String>
47 void SetClusterArn(ClusterArnT&& value) {
48 m_clusterArnHasBeenSet = true;
49 m_clusterArn = std::forward<ClusterArnT>(value);
50 }
51 template <typename ClusterArnT = Aws::String>
53 SetClusterArn(std::forward<ClusterArnT>(value));
54 return *this;
55 }
57
59
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 UpdateMonitoringRequest& WithCurrentVersion(CurrentVersionT&& value) {
76 SetCurrentVersion(std::forward<CurrentVersionT>(value));
77 return *this;
78 }
80
82
88 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
89 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
91 m_enhancedMonitoringHasBeenSet = true;
92 m_enhancedMonitoring = value;
93 }
96 return *this;
97 }
99
101
106 inline const OpenMonitoringInfo& GetOpenMonitoring() const { return m_openMonitoring; }
107 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
108 template <typename OpenMonitoringT = OpenMonitoringInfo>
109 void SetOpenMonitoring(OpenMonitoringT&& value) {
110 m_openMonitoringHasBeenSet = true;
111 m_openMonitoring = std::forward<OpenMonitoringT>(value);
112 }
113 template <typename OpenMonitoringT = OpenMonitoringInfo>
114 UpdateMonitoringRequest& WithOpenMonitoring(OpenMonitoringT&& value) {
115 SetOpenMonitoring(std::forward<OpenMonitoringT>(value));
116 return *this;
117 }
119
121
122 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
123 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
124 template <typename LoggingInfoT = LoggingInfo>
125 void SetLoggingInfo(LoggingInfoT&& value) {
126 m_loggingInfoHasBeenSet = true;
127 m_loggingInfo = std::forward<LoggingInfoT>(value);
128 }
129 template <typename LoggingInfoT = LoggingInfo>
131 SetLoggingInfo(std::forward<LoggingInfoT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_clusterArn;
137
138 Aws::String m_currentVersion;
139
141
142 OpenMonitoringInfo m_openMonitoring;
143
144 LoggingInfo m_loggingInfo;
145 bool m_clusterArnHasBeenSet = false;
146 bool m_currentVersionHasBeenSet = false;
147 bool m_enhancedMonitoringHasBeenSet = false;
148 bool m_openMonitoringHasBeenSet = false;
149 bool m_loggingInfoHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Kafka
154} // namespace Aws
UpdateMonitoringRequest & WithOpenMonitoring(OpenMonitoringT &&value)
UpdateMonitoringRequest & WithCurrentVersion(CurrentVersionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateMonitoringRequest & WithClusterArn(ClusterArnT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
void SetEnhancedMonitoring(EnhancedMonitoring value)
UpdateMonitoringRequest & WithLoggingInfo(LoggingInfoT &&value)
const OpenMonitoringInfo & GetOpenMonitoring() const
AWS_KAFKA_API UpdateMonitoringRequest()=default
UpdateMonitoringRequest & WithEnhancedMonitoring(EnhancedMonitoring value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String