AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KafkaSchemaRegistryConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/SchemaRegistryEventRecordFormat.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lambda/model/KafkaSchemaRegistryAccessConfig.h>
12#include <aws/lambda/model/KafkaSchemaValidationConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Lambda
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LAMBDA_API KafkaSchemaRegistryConfig() = default;
42 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const Aws::String& GetSchemaRegistryURI() const { return m_schemaRegistryURI; }
53 inline bool SchemaRegistryURIHasBeenSet() const { return m_schemaRegistryURIHasBeenSet; }
54 template<typename SchemaRegistryURIT = Aws::String>
55 void SetSchemaRegistryURI(SchemaRegistryURIT&& value) { m_schemaRegistryURIHasBeenSet = true; m_schemaRegistryURI = std::forward<SchemaRegistryURIT>(value); }
56 template<typename SchemaRegistryURIT = Aws::String>
57 KafkaSchemaRegistryConfig& WithSchemaRegistryURI(SchemaRegistryURIT&& value) { SetSchemaRegistryURI(std::forward<SchemaRegistryURIT>(value)); return *this;}
59
61
69 inline SchemaRegistryEventRecordFormat GetEventRecordFormat() const { return m_eventRecordFormat; }
70 inline bool EventRecordFormatHasBeenSet() const { return m_eventRecordFormatHasBeenSet; }
71 inline void SetEventRecordFormat(SchemaRegistryEventRecordFormat value) { m_eventRecordFormatHasBeenSet = true; m_eventRecordFormat = value; }
74
76
80 inline const Aws::Vector<KafkaSchemaRegistryAccessConfig>& GetAccessConfigs() const { return m_accessConfigs; }
81 inline bool AccessConfigsHasBeenSet() const { return m_accessConfigsHasBeenSet; }
82 template<typename AccessConfigsT = Aws::Vector<KafkaSchemaRegistryAccessConfig>>
83 void SetAccessConfigs(AccessConfigsT&& value) { m_accessConfigsHasBeenSet = true; m_accessConfigs = std::forward<AccessConfigsT>(value); }
84 template<typename AccessConfigsT = Aws::Vector<KafkaSchemaRegistryAccessConfig>>
85 KafkaSchemaRegistryConfig& WithAccessConfigs(AccessConfigsT&& value) { SetAccessConfigs(std::forward<AccessConfigsT>(value)); return *this;}
86 template<typename AccessConfigsT = KafkaSchemaRegistryAccessConfig>
87 KafkaSchemaRegistryConfig& AddAccessConfigs(AccessConfigsT&& value) { m_accessConfigsHasBeenSet = true; m_accessConfigs.emplace_back(std::forward<AccessConfigsT>(value)); return *this; }
89
91
96 inline const Aws::Vector<KafkaSchemaValidationConfig>& GetSchemaValidationConfigs() const { return m_schemaValidationConfigs; }
97 inline bool SchemaValidationConfigsHasBeenSet() const { return m_schemaValidationConfigsHasBeenSet; }
98 template<typename SchemaValidationConfigsT = Aws::Vector<KafkaSchemaValidationConfig>>
99 void SetSchemaValidationConfigs(SchemaValidationConfigsT&& value) { m_schemaValidationConfigsHasBeenSet = true; m_schemaValidationConfigs = std::forward<SchemaValidationConfigsT>(value); }
100 template<typename SchemaValidationConfigsT = Aws::Vector<KafkaSchemaValidationConfig>>
101 KafkaSchemaRegistryConfig& WithSchemaValidationConfigs(SchemaValidationConfigsT&& value) { SetSchemaValidationConfigs(std::forward<SchemaValidationConfigsT>(value)); return *this;}
102 template<typename SchemaValidationConfigsT = KafkaSchemaValidationConfig>
103 KafkaSchemaRegistryConfig& AddSchemaValidationConfigs(SchemaValidationConfigsT&& value) { m_schemaValidationConfigsHasBeenSet = true; m_schemaValidationConfigs.emplace_back(std::forward<SchemaValidationConfigsT>(value)); return *this; }
105 private:
106
107 Aws::String m_schemaRegistryURI;
108 bool m_schemaRegistryURIHasBeenSet = false;
109
111 bool m_eventRecordFormatHasBeenSet = false;
112
114 bool m_accessConfigsHasBeenSet = false;
115
116 Aws::Vector<KafkaSchemaValidationConfig> m_schemaValidationConfigs;
117 bool m_schemaValidationConfigsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Lambda
122} // namespace Aws
AWS_LAMBDA_API KafkaSchemaRegistryConfig()=default
void SetEventRecordFormat(SchemaRegistryEventRecordFormat value)
SchemaRegistryEventRecordFormat GetEventRecordFormat() const
const Aws::Vector< KafkaSchemaRegistryAccessConfig > & GetAccessConfigs() const
AWS_LAMBDA_API KafkaSchemaRegistryConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaSchemaRegistryConfig & WithSchemaRegistryURI(SchemaRegistryURIT &&value)
KafkaSchemaRegistryConfig & WithAccessConfigs(AccessConfigsT &&value)
KafkaSchemaRegistryConfig & AddAccessConfigs(AccessConfigsT &&value)
KafkaSchemaRegistryConfig & WithEventRecordFormat(SchemaRegistryEventRecordFormat value)
KafkaSchemaRegistryConfig & AddSchemaValidationConfigs(SchemaValidationConfigsT &&value)
KafkaSchemaRegistryConfig & WithSchemaValidationConfigs(SchemaValidationConfigsT &&value)
const Aws::Vector< KafkaSchemaValidationConfig > & GetSchemaValidationConfigs() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API KafkaSchemaRegistryConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSchemaValidationConfigs(SchemaValidationConfigsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue