efe78258f52e73d413f4e0a653febf589330e9f7
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / PatchStatusEntity.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.netconf.sal.restconf.impl;
10
11 import java.util.List;
12 import org.opendaylight.restconf.common.errors.RestconfError;
13
14 public class PatchStatusEntity {
15
16     private final String editId;
17     private final List<RestconfError> editErrors;
18     private final boolean ok;
19
20     public PatchStatusEntity(final String editId, final boolean ok, final List<RestconfError> editErrors) {
21         this.editId = editId;
22         this.ok = ok;
23         this.editErrors = editErrors;
24     }
25
26     public String getEditId() {
27         return editId;
28     }
29
30     public boolean isOk() {
31         return ok;
32     }
33
34     public List<RestconfError> getEditErrors() {
35         return editErrors;
36     }
37 }