Bug 3866: Support for Restconf HTTP Patch
[netconf.git] / opendaylight / restconf / sal-rest-connector / 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
13 public class PATCHStatusEntity {
14
15     private final String editId;
16     private final List<RestconfError> editErrors;
17     private final boolean ok;
18
19     public PATCHStatusEntity(final String editId, final boolean ok, final List<RestconfError> editErrors) {
20         this.editId = editId;
21         this.ok = ok;
22         this.editErrors = editErrors;
23     }
24
25     public String getEditId() {
26         return editId;
27     }
28
29     public boolean isOk() {
30         return ok;
31     }
32
33     public List<RestconfError> getEditErrors() {
34         return editErrors;
35     }
36 }