1 package org.openecomp.portalapp.portal.scheduler;
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
6 import org.apache.commons.lang.builder.ToStringBuilder;
9 * This wrapper encapsulates the Scheduler response
11 @JsonInclude(JsonInclude.Include.NON_NULL)
18 public class SchedulerResponseWrapper {
20 @JsonProperty("status")
23 @JsonProperty("entity")
24 private String entity;
29 @JsonProperty("entity")
30 public String getEntity() {
34 @JsonProperty("status")
35 public int getStatus() {
40 public String getUuid() {
44 @JsonProperty("status")
45 public void setStatus(int v) {
49 @JsonProperty("entity")
50 public void setEntity(String v) {
55 public void setUuid(String v) {
60 public String toString() {
61 return ToStringBuilder.reflectionToString(this);
64 public String getResponse () {
66 StringBuilder b = new StringBuilder ("{ \"status\": ");
67 b.append(getStatus()).append(", \"entity\": \" " ).append(this.getEntity()).append("\" ,\"uuid\": \"" ).append(this.getUuid()).append("\"}");
68 return (b.toString());