AWS SDK for C++

AWS SDK for C++ Version 1.11.889

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/KafkaClusterSaslOAuthBearerAuthentication.h>
10#include <aws/kafka/model/KafkaClusterSaslScramAuthentication.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
31 public:
32 AWS_KAFKA_API KafkaClusterClientAuthentication() = default;
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const KafkaClusterSaslScramAuthentication& GetSaslScram() const { return m_saslScram; }
42 inline bool SaslScramHasBeenSet() const { return m_saslScramHasBeenSet; }
43 template <typename SaslScramT = KafkaClusterSaslScramAuthentication>
44 void SetSaslScram(SaslScramT&& value) {
45 m_saslScramHasBeenSet = true;
46 m_saslScram = std::forward<SaslScramT>(value);
47 }
48 template <typename SaslScramT = KafkaClusterSaslScramAuthentication>
50 SetSaslScram(std::forward<SaslScramT>(value));
51 return *this;
52 }
54
56
59 inline const KafkaClusterMTLSAuthentication& GetMTLS() const { return m_mTLS; }
60 inline bool MTLSHasBeenSet() const { return m_mTLSHasBeenSet; }
61 template <typename MTLST = KafkaClusterMTLSAuthentication>
62 void SetMTLS(MTLST&& value) {
63 m_mTLSHasBeenSet = true;
64 m_mTLS = std::forward<MTLST>(value);
65 }
66 template <typename MTLST = KafkaClusterMTLSAuthentication>
68 SetMTLS(std::forward<MTLST>(value));
69 return *this;
70 }
72
74
77 inline const KafkaClusterSaslOAuthBearerAuthentication& GetSaslOAuthBearer() const { return m_saslOAuthBearer; }
78 inline bool SaslOAuthBearerHasBeenSet() const { return m_saslOAuthBearerHasBeenSet; }
79 template <typename SaslOAuthBearerT = KafkaClusterSaslOAuthBearerAuthentication>
80 void SetSaslOAuthBearer(SaslOAuthBearerT&& value) {
81 m_saslOAuthBearerHasBeenSet = true;
82 m_saslOAuthBearer = std::forward<SaslOAuthBearerT>(value);
83 }
84 template <typename SaslOAuthBearerT = KafkaClusterSaslOAuthBearerAuthentication>
86 SetSaslOAuthBearer(std::forward<SaslOAuthBearerT>(value));
87 return *this;
88 }
90 private:
92
94
96 bool m_saslScramHasBeenSet = false;
97 bool m_mTLSHasBeenSet = false;
98 bool m_saslOAuthBearerHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Kafka
103} // 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)
const KafkaClusterSaslOAuthBearerAuthentication & GetSaslOAuthBearer() const
KafkaClusterClientAuthentication & WithSaslOAuthBearer(SaslOAuthBearerT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const KafkaClusterSaslScramAuthentication & GetSaslScram() const
Aws::Utils::Json::JsonValue JsonValue