2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.openapi.model;
10 import com.fasterxml.jackson.annotation.JsonInclude;
11 import org.eclipse.jdt.annotation.Nullable;
13 @JsonInclude(JsonInclude.Include.NON_NULL)
14 public record MediaTypeObject(
15 @Nullable Schema schema) {
17 private MediaTypeObject(final Builder builder) {
21 @SuppressWarnings("checkstyle:hiddenField")
22 public static class Builder {
25 public Builder schema(Schema schema) {
30 public MediaTypeObject build() {
31 return new MediaTypeObject(this);