Open Kilda Java Documentation
ResponseData.java
Go to the documentation of this file.
1 package org.openkilda.messaging.ctrl;
2 
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
7 
8 @JsonSerialize
9 @JsonInclude(JsonInclude.Include.NON_NULL)
10 public class ResponseData extends BaseMessage {
11  private static final long serialVersionUID = 1L;
12 
13  @JsonProperty("component")
14  private String component;
15 
16  @JsonProperty("task_id")
17  private Integer taskId;
18 
19  @JsonProperty("topology")
20  private String topology;
21 
29  public ResponseData(
30  @JsonProperty("component") String component,
31  @JsonProperty("task_id") Integer taskId,
32  @JsonProperty("topology") String topology) {
33  this.component = component;
34  this.taskId = taskId;
35  this.topology = topology;
36  }
37 
38  public String getComponent() {
39  return component;
40  }
41 
42  public Integer getTaskId() {
43  return taskId;
44  }
45 
46  public String getTopology() {
47  return topology;
48  }
49 }
ResponseData( @JsonProperty("component") String component, @JsonProperty("task_id") Integer taskId, @JsonProperty("topology") String topology)