AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClientAuthentication.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/Sasl.h>
9#include <aws/kafka/model/Tls.h>
10#include <aws/kafka/model/Unauthenticated.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_KAFKA_API ClientAuthentication() = default;
42 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Sasl& GetSasl() const { return m_sasl; }
52 inline bool SaslHasBeenSet() const { return m_saslHasBeenSet; }
53 template<typename SaslT = Sasl>
54 void SetSasl(SaslT&& value) { m_saslHasBeenSet = true; m_sasl = std::forward<SaslT>(value); }
55 template<typename SaslT = Sasl>
56 ClientAuthentication& WithSasl(SaslT&& value) { SetSasl(std::forward<SaslT>(value)); return *this;}
58
60
65 inline const Tls& GetTls() const { return m_tls; }
66 inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
67 template<typename TlsT = Tls>
68 void SetTls(TlsT&& value) { m_tlsHasBeenSet = true; m_tls = std::forward<TlsT>(value); }
69 template<typename TlsT = Tls>
70 ClientAuthentication& WithTls(TlsT&& value) { SetTls(std::forward<TlsT>(value)); return *this;}
72
74
80 inline const Unauthenticated& GetUnauthenticated() const { return m_unauthenticated; }
81 inline bool UnauthenticatedHasBeenSet() const { return m_unauthenticatedHasBeenSet; }
82 template<typename UnauthenticatedT = Unauthenticated>
83 void SetUnauthenticated(UnauthenticatedT&& value) { m_unauthenticatedHasBeenSet = true; m_unauthenticated = std::forward<UnauthenticatedT>(value); }
84 template<typename UnauthenticatedT = Unauthenticated>
85 ClientAuthentication& WithUnauthenticated(UnauthenticatedT&& value) { SetUnauthenticated(std::forward<UnauthenticatedT>(value)); return *this;}
87 private:
88
89 Sasl m_sasl;
90 bool m_saslHasBeenSet = false;
91
92 Tls m_tls;
93 bool m_tlsHasBeenSet = false;
94
95 Unauthenticated m_unauthenticated;
96 bool m_unauthenticatedHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Kafka
101} // namespace Aws
AWS_KAFKA_API ClientAuthentication()=default
AWS_KAFKA_API ClientAuthentication & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API ClientAuthentication(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const Unauthenticated & GetUnauthenticated() const
void SetUnauthenticated(UnauthenticatedT &&value)
ClientAuthentication & WithTls(TlsT &&value)
ClientAuthentication & WithUnauthenticated(UnauthenticatedT &&value)
ClientAuthentication & WithSasl(SaslT &&value)
Aws::Utils::Json::JsonValue JsonValue