AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Prometheus.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/JmxExporter.h>
9#include <aws/kafka/model/NodeExporter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
31 public:
32 AWS_KAFKA_API Prometheus() = default;
33 AWS_KAFKA_API Prometheus(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const JmxExporter& GetJmxExporter() const { return m_jmxExporter; }
45 inline bool JmxExporterHasBeenSet() const { return m_jmxExporterHasBeenSet; }
46 template <typename JmxExporterT = JmxExporter>
47 void SetJmxExporter(JmxExporterT&& value) {
48 m_jmxExporterHasBeenSet = true;
49 m_jmxExporter = std::forward<JmxExporterT>(value);
50 }
51 template <typename JmxExporterT = JmxExporter>
52 Prometheus& WithJmxExporter(JmxExporterT&& value) {
53 SetJmxExporter(std::forward<JmxExporterT>(value));
54 return *this;
55 }
57
59
65 inline const NodeExporter& GetNodeExporter() const { return m_nodeExporter; }
66 inline bool NodeExporterHasBeenSet() const { return m_nodeExporterHasBeenSet; }
67 template <typename NodeExporterT = NodeExporter>
68 void SetNodeExporter(NodeExporterT&& value) {
69 m_nodeExporterHasBeenSet = true;
70 m_nodeExporter = std::forward<NodeExporterT>(value);
71 }
72 template <typename NodeExporterT = NodeExporter>
73 Prometheus& WithNodeExporter(NodeExporterT&& value) {
74 SetNodeExporter(std::forward<NodeExporterT>(value));
75 return *this;
76 }
78 private:
79 JmxExporter m_jmxExporter;
80
81 NodeExporter m_nodeExporter;
82 bool m_jmxExporterHasBeenSet = false;
83 bool m_nodeExporterHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Kafka
88} // namespace Aws
void SetNodeExporter(NodeExporterT &&value)
Definition Prometheus.h:68
const JmxExporter & GetJmxExporter() const
Definition Prometheus.h:44
Prometheus & WithJmxExporter(JmxExporterT &&value)
Definition Prometheus.h:52
AWS_KAFKA_API Prometheus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Prometheus()=default
bool JmxExporterHasBeenSet() const
Definition Prometheus.h:45
const NodeExporter & GetNodeExporter() const
Definition Prometheus.h:65
Prometheus & WithNodeExporter(NodeExporterT &&value)
Definition Prometheus.h:73
bool NodeExporterHasBeenSet() const
Definition Prometheus.h:66
void SetJmxExporter(JmxExporterT &&value)
Definition Prometheus.h:47
AWS_KAFKA_API Prometheus(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue