2 * Copyright (c) 2016 Cisco Systems, Inc. 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.server.api;
10 import static java.util.Objects.requireNonNull;
12 import java.util.List;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.eclipse.jdt.annotation.Nullable;
15 import org.opendaylight.restconf.common.errors.RestconfError;
18 * Holder of patch status context.
20 public record PatchStatusContext(
21 @NonNull DatabindContext databind,
22 @NonNull String patchId,
23 @NonNull List<PatchStatusEntity> editCollection,
25 @Nullable List<RestconfError> globalErrors) implements DatabindAware {
27 public PatchStatusContext {
28 requireNonNull(databind);
29 requireNonNull(patchId);
30 requireNonNull(editCollection);