Interface ReportGenerationResult.Builder

  • Method Details

    • reportType

      ReportGenerationResult.Builder reportType(String reportType)

      The type of the generated report.

      Parameters:
      reportType - The type of the generated report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reportType

      The type of the generated report.

      Parameters:
      reportType - The type of the generated report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the report generation.

      Parameters:
      status - The status of the report generation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the report generation.

      Parameters:
      status - The status of the report generation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • serviceArn

      ReportGenerationResult.Builder serviceArn(String serviceArn)

      The service this report was generated for.

      Parameters:
      serviceArn - The service this report was generated for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assessmentId

      ReportGenerationResult.Builder assessmentId(String assessmentId)

      Present for FAILURE_MODE reports.

      Parameters:
      assessmentId - Present for FAILURE_MODE reports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testRunId

      ReportGenerationResult.Builder testRunId(String testRunId)
      Sets the value of the TestRunId property for this object.
      Parameters:
      testRunId - The new value for the TestRunId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testTemplateArn

      ReportGenerationResult.Builder testTemplateArn(String testTemplateArn)
      Sets the value of the TestTemplateArn property for this object.
      Parameters:
      testTemplateArn - The new value for the TestTemplateArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      The timestamp when the report was created.

      Parameters:
      createdAt - The timestamp when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reportOutput

      ReportGenerationResult.Builder reportOutput(ReportOutput reportOutput)

      Present when status is SUCCEEDED or FAILED.

      Parameters:
      reportOutput - Present when status is SUCCEEDED or FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reportOutput

      default ReportGenerationResult.Builder reportOutput(Consumer<ReportOutput.Builder> reportOutput)

      Present when status is SUCCEEDED or FAILED.

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

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

      Parameters:
      reportOutput - a consumer that will call methods on ReportOutput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: