Interface BmcRequest.Builder<T extends BmcRequest<B>,​B>

  • Type Parameters:
    T - type of the request
    B - type of the body parameter (use Void if no body)
    Enclosing class:
    BmcRequest<B>

    public static interface BmcRequest.Builder<T extends BmcRequest<B>,​B>
    Builder interface for requests.
    • Method Detail

      • body$

        default BmcRequest.Builder<T,​B> body$​(B body)
        Alternative setter for the body parameter, if this request supports a body.

        If this request does not support a body, an IllegalStateException is thrown.

        Parameters:
        body - the body parameter
        Returns:
        this builder instance
        Throws:
        IllegalStateException - if this request does not support a body
      • copy

        BmcRequest.Builder<T,​B> copy​(T o)
        Copy method to populate the builder with values from the given instance.
        Parameters:
        o - other request from which to copy values
        Returns:
        this builder instance
      • build

        T build()
        Build the request.
        Returns:
        request