org.jboss.pnc.buildagent.api.httpinvoke.InvokeResponse Maven / Gradle / Ivy
package org.jboss.pnc.buildagent.api.httpinvoke;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
/**
* @author Matej Lazar
*/
@JsonDeserialize(builder = InvokeResponse.Builder.class)
public class InvokeResponse {
private final String sessionId;
public InvokeResponse(String sessionId) {
this.sessionId = sessionId;
}
private InvokeResponse(Builder builder) {
sessionId = builder.sessionId;
}
public static Builder newBuilder() {
return new Builder();
}
public String getSessionId() {
return sessionId;
}
@JsonPOJOBuilder(withPrefix = "")
public static final class Builder {
private String sessionId;
private Builder() {
}
public Builder sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
public InvokeResponse build() {
return new InvokeResponse(this);
}
}
}