Interface AdaptableBuilder
-
public interface AdaptableBuilder
A builder to createAdaptable
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Adaptable
build()
Creates a newAdaptable
from the previously set values.AdaptableBuilder
withHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders headers)
Sets the givenheaders
to this builder.AdaptableBuilder
withPayload(Payload payload)
Sets the givenpayload
to this builder.
-
-
-
Method Detail
-
withPayload
AdaptableBuilder withPayload(Payload payload)
Sets the givenpayload
to this builder. A previously set payload is replaced.- Parameters:
payload
- the payload to set.- Returns:
- this builder to allow method chaining.
-
withHeaders
AdaptableBuilder withHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders headers)
Sets the givenheaders
to this builder. Previously set headers are replaced.- Parameters:
headers
- the headers to set.- Returns:
- this builder to allow method chaining.
-
build
Adaptable build()
Creates a newAdaptable
from the previously set values.- Returns:
- the adaptable.
-
-