io.aws.lambda.events.gateway.APIGatewayV2WebSocketResponse Maven / Gradle / Ivy
package io.aws.lambda.events.gateway;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@Data
@Accessors(chain = true)
public class APIGatewayV2WebSocketResponse implements Serializable {
private Object body;
private boolean isBase64Encoded = false;
private int statusCode = 200;
private Map headers;
private Map> multiValueHeaders;
public @NotNull Map getHeaders() {
return headers == null ? Collections.emptyMap() : headers;
}
public @NotNull Map> getMultiValueHeaders() {
return multiValueHeaders == null ? Collections.emptyMap() : multiValueHeaders;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy