AWS SDK for C++  1.9.106
AWS SDK for C++
ClientAuthentication.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/kafka/model/Sasl.h>
9 #include <aws/kafka/model/Tls.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Kafka
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
50  inline const Sasl& GetSasl() const{ return m_sasl; }
51 
57  inline bool SaslHasBeenSet() const { return m_saslHasBeenSet; }
58 
64  inline void SetSasl(const Sasl& value) { m_saslHasBeenSet = true; m_sasl = value; }
65 
71  inline void SetSasl(Sasl&& value) { m_saslHasBeenSet = true; m_sasl = std::move(value); }
72 
78  inline ClientAuthentication& WithSasl(const Sasl& value) { SetSasl(value); return *this;}
79 
85  inline ClientAuthentication& WithSasl(Sasl&& value) { SetSasl(std::move(value)); return *this;}
86 
87 
93  inline const Tls& GetTls() const{ return m_tls; }
94 
100  inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
101 
107  inline void SetTls(const Tls& value) { m_tlsHasBeenSet = true; m_tls = value; }
108 
114  inline void SetTls(Tls&& value) { m_tlsHasBeenSet = true; m_tls = std::move(value); }
115 
121  inline ClientAuthentication& WithTls(const Tls& value) { SetTls(value); return *this;}
122 
128  inline ClientAuthentication& WithTls(Tls&& value) { SetTls(std::move(value)); return *this;}
129 
130 
137  inline const Unauthenticated& GetUnauthenticated() const{ return m_unauthenticated; }
138 
145  inline bool UnauthenticatedHasBeenSet() const { return m_unauthenticatedHasBeenSet; }
146 
153  inline void SetUnauthenticated(const Unauthenticated& value) { m_unauthenticatedHasBeenSet = true; m_unauthenticated = value; }
154 
161  inline void SetUnauthenticated(Unauthenticated&& value) { m_unauthenticatedHasBeenSet = true; m_unauthenticated = std::move(value); }
162 
169  inline ClientAuthentication& WithUnauthenticated(const Unauthenticated& value) { SetUnauthenticated(value); return *this;}
170 
177  inline ClientAuthentication& WithUnauthenticated(Unauthenticated&& value) { SetUnauthenticated(std::move(value)); return *this;}
178 
179  private:
180 
181  Sasl m_sasl;
182  bool m_saslHasBeenSet;
183 
184  Tls m_tls;
185  bool m_tlsHasBeenSet;
186 
187  Unauthenticated m_unauthenticated;
188  bool m_unauthenticatedHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Kafka
193 } // namespace Aws
Aws::Kafka::Model::ClientAuthentication::ClientAuthentication
ClientAuthentication(Aws::Utils::Json::JsonView jsonValue)
Tls.h
Aws::Kafka::Model::ClientAuthentication::GetTls
const Tls & GetTls() const
Definition: ClientAuthentication.h:93
Aws::Kafka::Model::ClientAuthentication::WithTls
ClientAuthentication & WithTls(const Tls &value)
Definition: ClientAuthentication.h:121
Aws::Kafka::Model::ClientAuthentication::SetTls
void SetTls(const Tls &value)
Definition: ClientAuthentication.h:107
Aws::Kafka::Model::ClientAuthentication::ClientAuthentication
ClientAuthentication()
Aws::Kafka::Model::ClientAuthentication::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::ClientAuthentication::WithSasl
ClientAuthentication & WithSasl(Sasl &&value)
Definition: ClientAuthentication.h:85
Aws::Kafka::Model::ClientAuthentication
Definition: ClientAuthentication.h:37
Aws::Kafka::Model::Unauthenticated
Definition: Unauthenticated.h:25
Aws::Kafka::Model::ClientAuthentication::SetUnauthenticated
void SetUnauthenticated(Unauthenticated &&value)
Definition: ClientAuthentication.h:161
Aws::Kafka::Model::Sasl
Definition: Sasl.h:36
Aws::Kafka::Model::Tls
Definition: Tls.h:36
Aws::Kafka::Model::ClientAuthentication::SetSasl
void SetSasl(const Sasl &value)
Definition: ClientAuthentication.h:64
Unauthenticated.h
Aws::Kafka::Model::ClientAuthentication::WithSasl
ClientAuthentication & WithSasl(const Sasl &value)
Definition: ClientAuthentication.h:78
Sasl.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::ClientAuthentication::SetSasl
void SetSasl(Sasl &&value)
Definition: ClientAuthentication.h:71
Aws::Kafka::Model::ClientAuthentication::TlsHasBeenSet
bool TlsHasBeenSet() const
Definition: ClientAuthentication.h:100
Aws::Kafka::Model::ClientAuthentication::GetUnauthenticated
const Unauthenticated & GetUnauthenticated() const
Definition: ClientAuthentication.h:137
Aws::Kafka::Model::ClientAuthentication::SaslHasBeenSet
bool SaslHasBeenSet() const
Definition: ClientAuthentication.h:57
Aws::Kafka::Model::ClientAuthentication::WithTls
ClientAuthentication & WithTls(Tls &&value)
Definition: ClientAuthentication.h:128
Aws::Kafka::Model::ClientAuthentication::SetUnauthenticated
void SetUnauthenticated(const Unauthenticated &value)
Definition: ClientAuthentication.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::ClientAuthentication::WithUnauthenticated
ClientAuthentication & WithUnauthenticated(Unauthenticated &&value)
Definition: ClientAuthentication.h:177
Kafka_EXPORTS.h
Aws::Kafka::Model::ClientAuthentication::SetTls
void SetTls(Tls &&value)
Definition: ClientAuthentication.h:114
Aws::Kafka::Model::ClientAuthentication::GetSasl
const Sasl & GetSasl() const
Definition: ClientAuthentication.h:50
Aws::Kafka::Model::ClientAuthentication::UnauthenticatedHasBeenSet
bool UnauthenticatedHasBeenSet() const
Definition: ClientAuthentication.h:145
Aws::Kafka::Model::ClientAuthentication::operator=
ClientAuthentication & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::ClientAuthentication::WithUnauthenticated
ClientAuthentication & WithUnauthenticated(const Unauthenticated &value)
Definition: ClientAuthentication.h:169