Class MultiResourceResult.Builder

  • Enclosing class:
    MultiResourceResult

    public static class MultiResourceResult.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • success

        public MultiResourceResult.Builder 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
      • resourceResult

        @SafeVarargs
        public final MultiResourceResult.Builder resourceResult​(ResourceResult<? extends Resource>... resourceResultsParam)
        Add the resource results to the resourceResults list
        Parameters:
        resourceResultsParam -
        Returns:
      • addResourceResults

        public final MultiResourceResult.Builder addResourceResults​(java.util.List<ResourceResult<? extends Resource>> resourceResultsList)
        Add the resource result list to resource list owned by this
        Parameters:
        resourceResultsParam -
        Returns:
      • outcome

        public MultiResourceResult.Builder 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