Interface Remediation.Builder

    • Method Detail

      • recommendation

        Remediation.Builder recommendation​(Recommendation recommendation)

        An object that contains information about the recommended course of action to remediate a finding.

        Parameters:
        recommendation - An object that contains information about the recommended course of action to remediate a finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestedFixes

        Remediation.Builder suggestedFixes​(Collection<SuggestedFix> suggestedFixes)

        A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.

        Parameters:
        suggestedFixes - A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestedFixes

        Remediation.Builder suggestedFixes​(SuggestedFix... suggestedFixes)

        A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.

        Parameters:
        suggestedFixes - A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestedFixes

        Remediation.Builder suggestedFixes​(Consumer<SuggestedFix.Builder>... suggestedFixes)

        A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.

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

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

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