summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapper.java
blob: f1baeaf6e890d5a7718825ea041aed1787e88dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package org.openecomp.vid.scheduler.SchedulerResponseWrappers;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
	    "uuid"
})
public class PostCreateNewVnfWrapper extends SchedulerResponseWrapper {

	@JsonProperty("uuid")
	private String uuid;
	
	@JsonProperty("uuid")
    public String getUuid() {
        return uuid;
    }
	
	@JsonProperty("uuid")
    public void setUuid(String v) {
        this.uuid = v;
    }
	
	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public String getResponse () {
    	
    	StringBuilder b = new StringBuilder ("{ \"status\": ");
    	b.append(getStatus()).append(", \"entity\": \" " ).append(this.getEntity()).append("\" ,\"uuid\": \"" ).append(this.getUuid()).append("\"}");
    	return (b.toString());
    }	
}