public static class RestResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
<T extends RestResponse> |
build(Class<T> responseType) |
RestResponse.Builder |
error(String error) |
RestResponse.Builder |
fieldError(String fieldname,
String error) |
RestResponse.Builder |
message(String message) |
RestResponse.Builder |
warning(String warning) |
public RestResponse.Builder error(@NotNull String error)
public RestResponse.Builder fieldError(@NotNull String fieldname, @NotNull String error)
public RestResponse.Builder message(@NotNull String message)
public RestResponse.Builder warning(@NotNull String warning)
public <T extends RestResponse> T build(Class<T> responseType)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.