io.strimzi.api.kafka.model.KafkaBridgeClientSpec Maven / Gradle / Ivy
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.api.kafka.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import static java.util.Collections.emptyMap;
@Buildable(
editableEnabled = false,
generateBuilderPackage = false,
builderPackage = "io.fabric8.kubernetes.api.builder"
)
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
public abstract class KafkaBridgeClientSpec implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;
protected Map config = new HashMap<>(0);
private Map additionalProperties;
public Map getConfig() {
return config;
}
public void setConfig(Map config) {
this.config = config;
}
@Override
public Map getAdditionalProperties() {
return this.additionalProperties != null ? this.additionalProperties : emptyMap();
}
@Override
public void setAdditionalProperty(String name, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap<>();
}
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy