2 * Copyright (C) 2014 Cisco Systems, Inc.
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 * Authors : Thomas Bachman
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.lib.messages;
12 import org.opendaylight.groupbasedpolicy.jsonrpc.RpcMessage;
14 import com.fasterxml.jackson.annotation.JsonIgnore;
15 import com.fasterxml.jackson.databind.JsonNode;
16 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
17 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
21 public class EndpointUpdateResponse extends RpcMessage {
23 public static final String EP_UPDATE_MESSAGE_RESPONSE = "endpoint_update_response";
25 static public class Result {
29 private Result result;
30 private OpflexError error;
35 private String method;
38 public JsonNode getId() {
43 public void setId(JsonNode id) {
47 public OpflexError getError() {
51 public void setError(OpflexError error) {
56 public String getMethod() {
61 public void setMethod(String method) {
64 public Result getResult() {
68 public void setResult(Result result) {
72 public EndpointUpdateResponse(String name) {
76 public EndpointUpdateResponse() {
77 this.name = EP_UPDATE_MESSAGE_RESPONSE;
81 public String getName() {
86 public void setName(String name) {
91 public boolean valid() {