Interface Recommendation.Builder

    • Method Detail

      • allMatchesCount

        Recommendation.Builder allMatchesCount​(Integer allMatchesCount)

        How many different places in the profile graph triggered a match.

        Parameters:
        allMatchesCount - How many different places in the profile graph triggered a match.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allMatchesSum

        Recommendation.Builder allMatchesSum​(Double allMatchesSum)

        How much of the total sample count is potentially affected.

        Parameters:
        allMatchesSum - How much of the total sample count is potentially affected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTime

        Recommendation.Builder endTime​(Instant endTime)

        End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        Parameters:
        endTime - End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pattern

        Recommendation.Builder pattern​(Pattern pattern)

        The pattern that analysis recognized in the profile to make this recommendation.

        Parameters:
        pattern - The pattern that analysis recognized in the profile to make this recommendation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTime

        Recommendation.Builder startTime​(Instant startTime)

        The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        Parameters:
        startTime - The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • topMatches

        Recommendation.Builder topMatches​(Collection<Match> topMatches)

        List of the matches with most impact.

        Parameters:
        topMatches - List of the matches with most impact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • topMatches

        Recommendation.Builder topMatches​(Match... topMatches)

        List of the matches with most impact.

        Parameters:
        topMatches - List of the matches with most impact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • topMatches

        Recommendation.Builder topMatches​(Consumer<Match.Builder>... topMatches)

        List of the matches with most impact.

        This is a convenience method that creates an instance of the Match.Builder avoiding the need to create one manually via Match.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #topMatches(List).

        Parameters:
        topMatches - a consumer that will call methods on Match.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #topMatches(java.util.Collection)