Interface AdaptableBuilder


  • public interface AdaptableBuilder
    A builder to create Adaptable instances.
    • Method Detail

      • withPayload

        AdaptableBuilder withPayload​(Payload payload)
        Sets the given payload 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 given headers 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 new Adaptable from the previously set values.
        Returns:
        the adaptable.