AWS SDK for C++  1.9.106
AWS SDK for C++
Sasl.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/kafka/model/Iam.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Kafka
23 {
24 namespace Model
25 {
26 
36  {
37  public:
38  Sasl();
42 
43 
49  inline const Scram& GetScram() const{ return m_scram; }
50 
56  inline bool ScramHasBeenSet() const { return m_scramHasBeenSet; }
57 
63  inline void SetScram(const Scram& value) { m_scramHasBeenSet = true; m_scram = value; }
64 
70  inline void SetScram(Scram&& value) { m_scramHasBeenSet = true; m_scram = std::move(value); }
71 
77  inline Sasl& WithScram(const Scram& value) { SetScram(value); return *this;}
78 
84  inline Sasl& WithScram(Scram&& value) { SetScram(std::move(value)); return *this;}
85 
86 
92  inline const Iam& GetIam() const{ return m_iam; }
93 
99  inline bool IamHasBeenSet() const { return m_iamHasBeenSet; }
100 
106  inline void SetIam(const Iam& value) { m_iamHasBeenSet = true; m_iam = value; }
107 
113  inline void SetIam(Iam&& value) { m_iamHasBeenSet = true; m_iam = std::move(value); }
114 
120  inline Sasl& WithIam(const Iam& value) { SetIam(value); return *this;}
121 
127  inline Sasl& WithIam(Iam&& value) { SetIam(std::move(value)); return *this;}
128 
129  private:
130 
131  Scram m_scram;
132  bool m_scramHasBeenSet;
133 
134  Iam m_iam;
135  bool m_iamHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Kafka
140 } // namespace Aws
Aws::Kafka::Model::Sasl::SetIam
void SetIam(const Iam &value)
Definition: Sasl.h:106
Aws::Kafka::Model::Sasl::WithIam
Sasl & WithIam(Iam &&value)
Definition: Sasl.h:127
Aws::Kafka::Model::Sasl::Sasl
Sasl()
Aws::Kafka::Model::Sasl::WithScram
Sasl & WithScram(Scram &&value)
Definition: Sasl.h:84
Aws::Kafka::Model::Sasl::IamHasBeenSet
bool IamHasBeenSet() const
Definition: Sasl.h:99
Aws::Kafka::Model::Sasl::GetScram
const Scram & GetScram() const
Definition: Sasl.h:49
Aws::Kafka::Model::Iam
Definition: Iam.h:33
Aws::Kafka::Model::Sasl::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::Sasl
Definition: Sasl.h:36
Aws::Kafka::Model::Sasl::operator=
Sasl & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Iam.h
Aws::Kafka::Model::Sasl::WithScram
Sasl & WithScram(const Scram &value)
Definition: Sasl.h:77
Aws::Kafka::Model::Sasl::WithIam
Sasl & WithIam(const Iam &value)
Definition: Sasl.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::Sasl::GetIam
const Iam & GetIam() const
Definition: Sasl.h:92
Aws::Kafka::Model::Sasl::SetIam
void SetIam(Iam &&value)
Definition: Sasl.h:113
Aws::Kafka::Model::Sasl::SetScram
void SetScram(Scram &&value)
Definition: Sasl.h:70
Kafka_EXPORTS.h
Aws::Kafka::Model::Sasl::Sasl
Sasl(Aws::Utils::Json::JsonView jsonValue)
Scram.h
Aws::Kafka::Model::Scram
Definition: Scram.h:33
Aws::Kafka::Model::Sasl::ScramHasBeenSet
bool ScramHasBeenSet() const
Definition: Sasl.h:56
Aws::Kafka::Model::Sasl::SetScram
void SetScram(const Scram &value)
Definition: Sasl.h:63