Class SingleResourceResult.Builder<T extends Resource>

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • success

        public SingleResourceResult.Builder<T> success​(boolean success)
        Whether or not the interaction was successful

        This field is required.

        Parameters:
        success - whether the interaction was successful
        Returns:
        A reference to this Builder instance
      • ifNoneMatchVersion

        public SingleResourceResult.Builder<T> ifNoneMatchVersion​(Integer versionId)
        Sets the version we found hitting IfNoneMatch. Null in other cases.
        Parameters:
        versionId -
        Returns:
      • deleted

        public SingleResourceResult.Builder<T> deleted​(boolean flag)
        Whether or not the resource is deleted
        Parameters:
        flag -
        Returns:
        A reference to this Builder instance
      • resource

        public SingleResourceResult.Builder<T> resource​(T resource)
        The resulting resource from the interaction
        Parameters:
        resource - the resulting resource from the interaction; this may be null if the interaction was not successful
        Returns:
        A reference to this Builder instance
      • outcome

        public SingleResourceResult.Builder<T> outcome​(OperationOutcome outcome)
        An OperationOutcome that represents the outcome of the interaction

        This field is required when the interaction is not successful

        Parameters:
        outcome - the outcome of the interaction
        Returns:
        A reference to this Builder instance