io.debezium.operator.api.model.Sink Maven / Gradle / Ivy
/*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.operator.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import io.debezium.operator.api.config.ConfigMappable;
import io.debezium.operator.api.config.ConfigMapping;
import io.debezium.operator.docs.annotations.Documented;
import io.sundr.builder.annotations.Buildable;
@Documented
@Buildable(editableEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", lazyCollectionInitEnabled = false)
public class Sink implements ConfigMappable {
@JsonPropertyDescription("Sink type recognised by Debezium Server.")
@JsonProperty(required = true)
private String type;
@JsonPropertyDescription("Sink configuration properties.")
private ConfigProperties config;
public Sink() {
this.config = new ConfigProperties();
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ConfigProperties getConfig() {
return config;
}
public void setConfig(ConfigProperties config) {
this.config = config;
}
@Override
public ConfigMapping asConfiguration() {
return ConfigMapping.empty()
.put("type", type)
.putAll(type, this.config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy