Interface Remediation.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Remediation.Builder,Remediation>, SdkBuilder<Remediation.Builder,Remediation>, SdkPojo
Enclosing class:
Remediation

public static interface Remediation.Builder extends SdkPojo, CopyableBuilder<Remediation.Builder,Remediation>
  • Method Details

    • 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.
    • recommendation

      default Remediation.Builder recommendation(Consumer<Recommendation.Builder> recommendation)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recommendation(Recommendation).

      Parameters:
      recommendation - a consumer that will call methods on Recommendation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<SuggestedFix>).

      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: