ftl.builtin.HttpRequest Maven / Gradle / Ivy
package ftl.builtin;
import java.lang.String;
import java.util.List;
import java.util.Map;
import org.jetbrains.annotations.NotNull;
import xyz.block.ftl.GeneratedRef;
@GeneratedRef(
name = "HttpRequest",
module = "builtin"
)
public class HttpRequest {
private @NotNull String method;
private @NotNull String path;
private @NotNull Map pathParameters;
private @NotNull Map> query;
private @NotNull Map> headers;
private @NotNull Body body;
public HttpRequest() {
}
public HttpRequest(@NotNull Body body, @NotNull Map> headers,
@NotNull String method, @NotNull String path, @NotNull Map pathParameters,
@NotNull Map> query) {
this.body = body;
this.headers = headers;
this.method = method;
this.path = path;
this.pathParameters = pathParameters;
this.query = query;
}
public HttpRequest setMethod(@NotNull String method) {
this.method = method;
return this;
}
public @NotNull String getMethod() {
return method;
}
public HttpRequest setPath(@NotNull String path) {
this.path = path;
return this;
}
public @NotNull String getPath() {
return path;
}
public HttpRequest setPathParameters(@NotNull Map pathParameters) {
this.pathParameters = pathParameters;
return this;
}
public @NotNull Map getPathParameters() {
return pathParameters;
}
public HttpRequest setQuery(@NotNull Map> query) {
this.query = query;
return this;
}
public @NotNull Map> getQuery() {
return query;
}
public HttpRequest setHeaders(@NotNull Map> headers) {
this.headers = headers;
return this;
}
public @NotNull Map> getHeaders() {
return headers;
}
public HttpRequest setBody(@NotNull Body body) {
this.body = body;
return this;
}
public @NotNull Body getBody() {
return body;
}
}