Package com.atlassian.bamboo.rest.entity
Class RestResponse.Builder
- java.lang.Object
-
- com.atlassian.bamboo.rest.entity.RestResponse.Builder
-
- Enclosing class:
- RestResponse
public static class RestResponse.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends RestResponse>
Tbuild(Class<T> responseType)
RestResponse.Builder
error(@NotNull String error)
RestResponse.Builder
fieldError(@NotNull String fieldname, @NotNull String error)
RestResponse.Builder
message(@NotNull String message)
RestResponse.Builder
warning(@NotNull String warning)
-
-
-
Method Detail
-
error
public RestResponse.Builder error(@NotNull @NotNull String error)
-
fieldError
public RestResponse.Builder fieldError(@NotNull @NotNull String fieldname, @NotNull @NotNull String error)
-
message
public RestResponse.Builder message(@NotNull @NotNull String message)
-
warning
public RestResponse.Builder warning(@NotNull @NotNull String warning)
-
build
public <T extends RestResponse> T build(Class<T> responseType)
-
-