Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
Result.Builder<T,A> |
attributes(A attributes)
Sets the output attributes value
|
Result.Builder<T,A> |
attributesMediaType(MediaType mediaType)
Sets the output
MediaType for the attributes |
Result<T,A> |
build() |
Result.Builder<T,A> |
length(long length)
Sets the length in bytes of the payload
|
Result.Builder<T,A> |
length(Long length)
Deprecated.
Use
length(long) instead. |
Result.Builder<T,A> |
mediaType(MediaType mediaType)
Sets the output
MediaType for the payload |
Result.Builder<T,A> |
output(T output)
Sets the output value
|
public Result.Builder<T,A> output(T output)
output
- the new output valuethis
builderpublic Result.Builder<T,A> attributes(A attributes)
attributes
- the new attributes valuethis
builderpublic Result.Builder<T,A> mediaType(MediaType mediaType)
MediaType
for the payloadmediaType
- the new MediaType
this
builderpublic Result.Builder<T,A> attributesMediaType(MediaType mediaType)
MediaType
for the attributesmediaType
- the new MediaType
this
builder@Deprecated public Result.Builder<T,A> length(Long length)
length(long)
instead.length
- public Result.Builder<T,A> length(long length)
length
- Copyright © 2018. All rights reserved.