AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
KafkaSchemaRegistryConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/KafkaSchemaRegistryAccessConfig.h>
11#include <aws/lambda/model/KafkaSchemaValidationConfig.h>
12#include <aws/lambda/model/SchemaRegistryEventRecordFormat.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lambda {
24namespace Model {
25
33 public:
34 AWS_LAMBDA_API KafkaSchemaRegistryConfig() = default;
37 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetSchemaRegistryURI() const { return m_schemaRegistryURI; }
47 inline bool SchemaRegistryURIHasBeenSet() const { return m_schemaRegistryURIHasBeenSet; }
48 template <typename SchemaRegistryURIT = Aws::String>
49 void SetSchemaRegistryURI(SchemaRegistryURIT&& value) {
50 m_schemaRegistryURIHasBeenSet = true;
51 m_schemaRegistryURI = std::forward<SchemaRegistryURIT>(value);
52 }
53 template <typename SchemaRegistryURIT = Aws::String>
54 KafkaSchemaRegistryConfig& WithSchemaRegistryURI(SchemaRegistryURIT&& value) {
55 SetSchemaRegistryURI(std::forward<SchemaRegistryURIT>(value));
56 return *this;
57 }
59
61
69 inline SchemaRegistryEventRecordFormat GetEventRecordFormat() const { return m_eventRecordFormat; }
70 inline bool EventRecordFormatHasBeenSet() const { return m_eventRecordFormatHasBeenSet; }
72 m_eventRecordFormatHasBeenSet = true;
73 m_eventRecordFormat = value;
74 }
77 return *this;
78 }
80
82
86 inline const Aws::Vector<KafkaSchemaRegistryAccessConfig>& GetAccessConfigs() const { return m_accessConfigs; }
87 inline bool AccessConfigsHasBeenSet() const { return m_accessConfigsHasBeenSet; }
88 template <typename AccessConfigsT = Aws::Vector<KafkaSchemaRegistryAccessConfig>>
89 void SetAccessConfigs(AccessConfigsT&& value) {
90 m_accessConfigsHasBeenSet = true;
91 m_accessConfigs = std::forward<AccessConfigsT>(value);
92 }
93 template <typename AccessConfigsT = Aws::Vector<KafkaSchemaRegistryAccessConfig>>
95 SetAccessConfigs(std::forward<AccessConfigsT>(value));
96 return *this;
97 }
98 template <typename AccessConfigsT = KafkaSchemaRegistryAccessConfig>
100 m_accessConfigsHasBeenSet = true;
101 m_accessConfigs.emplace_back(std::forward<AccessConfigsT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::Vector<KafkaSchemaValidationConfig>& GetSchemaValidationConfigs() const { return m_schemaValidationConfigs; }
113 inline bool SchemaValidationConfigsHasBeenSet() const { return m_schemaValidationConfigsHasBeenSet; }
114 template <typename SchemaValidationConfigsT = Aws::Vector<KafkaSchemaValidationConfig>>
115 void SetSchemaValidationConfigs(SchemaValidationConfigsT&& value) {
116 m_schemaValidationConfigsHasBeenSet = true;
117 m_schemaValidationConfigs = std::forward<SchemaValidationConfigsT>(value);
118 }
119 template <typename SchemaValidationConfigsT = Aws::Vector<KafkaSchemaValidationConfig>>
120 KafkaSchemaRegistryConfig& WithSchemaValidationConfigs(SchemaValidationConfigsT&& value) {
121 SetSchemaValidationConfigs(std::forward<SchemaValidationConfigsT>(value));
122 return *this;
123 }
124 template <typename SchemaValidationConfigsT = KafkaSchemaValidationConfig>
125 KafkaSchemaRegistryConfig& AddSchemaValidationConfigs(SchemaValidationConfigsT&& value) {
126 m_schemaValidationConfigsHasBeenSet = true;
127 m_schemaValidationConfigs.emplace_back(std::forward<SchemaValidationConfigsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_schemaRegistryURI;
133
135
137
138 Aws::Vector<KafkaSchemaValidationConfig> m_schemaValidationConfigs;
139 bool m_schemaRegistryURIHasBeenSet = false;
140 bool m_eventRecordFormatHasBeenSet = false;
141 bool m_accessConfigsHasBeenSet = false;
142 bool m_schemaValidationConfigsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace Lambda
147} // 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