io.streamthoughts.jikkou.extension.aiven.api.data.SubjectSchemaConfigurationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jikkou-provider-aiven Show documentation
Show all versions of jikkou-provider-aiven Show documentation
Integration between Aiven for Apache Kafka and Jikkou
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) The original authors
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.streamthoughts.jikkou.extension.aiven.api.data;
import io.streamthoughts.jikkou.core.annotation.Reflectable;
import io.streamthoughts.jikkou.schema.registry.model.CompatibilityLevels;
import java.beans.ConstructorProperties;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import org.jetbrains.annotations.Nullable;
/**
* POST/ Schema Registry Subject version - HTTP-response
*
* @param compatibilityLevel Schema Subject Version
* @param errors List of errors occurred during request processing
* @param message Printable result of the request
*/
@Reflectable
public record SubjectSchemaConfigurationResponse(CompatibilityLevels compatibilityLevel,
@Nullable List errors,
@Nullable String message
) {
@ConstructorProperties({
"compatibilityLevel",
"errors",
"message",
})
public SubjectSchemaConfigurationResponse {
}
/**
* {@inheritDoc}
**/
@Override
public List errors() {
return Optional.ofNullable(errors).orElseGet(Collections::emptyList);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy