AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
KafkaClusterClientAuthentication.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/KafkaClusterMTLSAuthentication.h>
9#include <aws/kafka/model/KafkaClusterSaslScramAuthentication.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
30 public:
31 AWS_KAFKA_API KafkaClusterClientAuthentication() = default;
34 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const KafkaClusterSaslScramAuthentication& GetSaslScram() const { return m_saslScram; }
41 inline bool SaslScramHasBeenSet() const { return m_saslScramHasBeenSet; }
42 template <typename SaslScramT = KafkaClusterSaslScramAuthentication>
43 void SetSaslScram(SaslScramT&& value) {
44 m_saslScramHasBeenSet = true;
45 m_saslScram = std::forward<SaslScramT>(value);
46 }
47 template <typename SaslScramT = KafkaClusterSaslScramAuthentication>
49 SetSaslScram(std::forward<SaslScramT>(value));
50 return *this;
51 }
53
55
58 inline const KafkaClusterMTLSAuthentication& GetMTLS() const { return m_mTLS; }
59 inline bool MTLSHasBeenSet() const { return m_mTLSHasBeenSet; }
60 template <typename MTLST = KafkaClusterMTLSAuthentication>
61 void SetMTLS(MTLST&& value) {
62 m_mTLSHasBeenSet = true;
63 m_mTLS = std::forward<MTLST>(value);
64 }
65 template <typename MTLST = KafkaClusterMTLSAuthentication>
67 SetMTLS(std::forward<MTLST>(value));
68 return *this;
69 }
71 private:
73
75 bool m_saslScramHasBeenSet = false;
76 bool m_mTLSHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Kafka
81} // namespace Aws
KafkaClusterClientAuthentication & WithSaslScram(SaslScramT &&value)
AWS_KAFKA_API KafkaClusterClientAuthentication(Aws::Utils::Json::JsonView jsonValue)
KafkaClusterClientAuthentication & WithMTLS(MTLST &&value)
const KafkaClusterMTLSAuthentication & GetMTLS() const
AWS_KAFKA_API KafkaClusterClientAuthentication & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const KafkaClusterSaslScramAuthentication & GetSaslScram() const
Aws::Utils::Json::JsonValue JsonValue