AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
KafkaCluster.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/AmazonMskCluster.h>
9#include <aws/kafka/model/ApacheKafkaCluster.h>
10#include <aws/kafka/model/KafkaClusterClientAuthentication.h>
11#include <aws/kafka/model/KafkaClusterClientVpcConfig.h>
12#include <aws/kafka/model/KafkaClusterEncryptionInTransit.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
25
33 public:
34 AWS_KAFKA_API KafkaCluster() = default;
35 AWS_KAFKA_API KafkaCluster(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const AmazonMskCluster& GetAmazonMskCluster() const { return m_amazonMskCluster; }
44 inline bool AmazonMskClusterHasBeenSet() const { return m_amazonMskClusterHasBeenSet; }
45 template <typename AmazonMskClusterT = AmazonMskCluster>
46 void SetAmazonMskCluster(AmazonMskClusterT&& value) {
47 m_amazonMskClusterHasBeenSet = true;
48 m_amazonMskCluster = std::forward<AmazonMskClusterT>(value);
49 }
50 template <typename AmazonMskClusterT = AmazonMskCluster>
51 KafkaCluster& WithAmazonMskCluster(AmazonMskClusterT&& value) {
52 SetAmazonMskCluster(std::forward<AmazonMskClusterT>(value));
53 return *this;
54 }
56
58
61 inline const ApacheKafkaCluster& GetApacheKafkaCluster() const { return m_apacheKafkaCluster; }
62 inline bool ApacheKafkaClusterHasBeenSet() const { return m_apacheKafkaClusterHasBeenSet; }
63 template <typename ApacheKafkaClusterT = ApacheKafkaCluster>
64 void SetApacheKafkaCluster(ApacheKafkaClusterT&& value) {
65 m_apacheKafkaClusterHasBeenSet = true;
66 m_apacheKafkaCluster = std::forward<ApacheKafkaClusterT>(value);
67 }
68 template <typename ApacheKafkaClusterT = ApacheKafkaCluster>
69 KafkaCluster& WithApacheKafkaCluster(ApacheKafkaClusterT&& value) {
70 SetApacheKafkaCluster(std::forward<ApacheKafkaClusterT>(value));
71 return *this;
72 }
74
76
80 inline const KafkaClusterClientVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
81 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
82 template <typename VpcConfigT = KafkaClusterClientVpcConfig>
83 void SetVpcConfig(VpcConfigT&& value) {
84 m_vpcConfigHasBeenSet = true;
85 m_vpcConfig = std::forward<VpcConfigT>(value);
86 }
87 template <typename VpcConfigT = KafkaClusterClientVpcConfig>
88 KafkaCluster& WithVpcConfig(VpcConfigT&& value) {
89 SetVpcConfig(std::forward<VpcConfigT>(value));
90 return *this;
91 }
93
95
98 inline const KafkaClusterClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
99 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
100 template <typename ClientAuthenticationT = KafkaClusterClientAuthentication>
101 void SetClientAuthentication(ClientAuthenticationT&& value) {
102 m_clientAuthenticationHasBeenSet = true;
103 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
104 }
105 template <typename ClientAuthenticationT = KafkaClusterClientAuthentication>
106 KafkaCluster& WithClientAuthentication(ClientAuthenticationT&& value) {
107 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
108 return *this;
109 }
111
113
116 inline const KafkaClusterEncryptionInTransit& GetEncryptionInTransit() const { return m_encryptionInTransit; }
117 inline bool EncryptionInTransitHasBeenSet() const { return m_encryptionInTransitHasBeenSet; }
118 template <typename EncryptionInTransitT = KafkaClusterEncryptionInTransit>
119 void SetEncryptionInTransit(EncryptionInTransitT&& value) {
120 m_encryptionInTransitHasBeenSet = true;
121 m_encryptionInTransit = std::forward<EncryptionInTransitT>(value);
122 }
123 template <typename EncryptionInTransitT = KafkaClusterEncryptionInTransit>
124 KafkaCluster& WithEncryptionInTransit(EncryptionInTransitT&& value) {
125 SetEncryptionInTransit(std::forward<EncryptionInTransitT>(value));
126 return *this;
127 }
129 private:
130 AmazonMskCluster m_amazonMskCluster;
131
132 ApacheKafkaCluster m_apacheKafkaCluster;
133
134 KafkaClusterClientVpcConfig m_vpcConfig;
135
136 KafkaClusterClientAuthentication m_clientAuthentication;
137
138 KafkaClusterEncryptionInTransit m_encryptionInTransit;
139 bool m_amazonMskClusterHasBeenSet = false;
140 bool m_apacheKafkaClusterHasBeenSet = false;
141 bool m_vpcConfigHasBeenSet = false;
142 bool m_clientAuthenticationHasBeenSet = false;
143 bool m_encryptionInTransitHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Kafka
148} // namespace Aws
void SetEncryptionInTransit(EncryptionInTransitT &&value)
AWS_KAFKA_API KafkaCluster(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API KafkaCluster()=default
bool ClientAuthenticationHasBeenSet() const
KafkaCluster & WithAmazonMskCluster(AmazonMskClusterT &&value)
KafkaCluster & WithApacheKafkaCluster(ApacheKafkaClusterT &&value)
KafkaCluster & WithEncryptionInTransit(EncryptionInTransitT &&value)
const AmazonMskCluster & GetAmazonMskCluster() const
void SetClientAuthentication(ClientAuthenticationT &&value)
void SetAmazonMskCluster(AmazonMskClusterT &&value)
KafkaCluster & WithClientAuthentication(ClientAuthenticationT &&value)
void SetVpcConfig(VpcConfigT &&value)
const KafkaClusterClientAuthentication & GetClientAuthentication() const
KafkaCluster & WithVpcConfig(VpcConfigT &&value)
void SetApacheKafkaCluster(ApacheKafkaClusterT &&value)
const KafkaClusterClientVpcConfig & GetVpcConfig() const
const KafkaClusterEncryptionInTransit & GetEncryptionInTransit() const
const ApacheKafkaCluster & GetApacheKafkaCluster() const
AWS_KAFKA_API KafkaCluster & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ApacheKafkaClusterHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue