Interface ListScansResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CodeGuruSecurityResponse.Builder, CopyableBuilder<ListScansResponse.Builder,ListScansResponse>, SdkBuilder<ListScansResponse.Builder,ListScansResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListScansResponse

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

    • nextToken

      ListScansResponse.Builder nextToken(String nextToken)

      A pagination token. You can use this in future calls to ListScans to continue listing results after the current page.

      Parameters:
      nextToken - A pagination token. You can use this in future calls to ListScans to continue listing results after the current page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaries

      A list of ScanSummary objects with information about all scans in an account.

      Parameters:
      summaries - A list of ScanSummary objects with information about all scans in an account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaries

      ListScansResponse.Builder summaries(ScanSummary... summaries)

      A list of ScanSummary objects with information about all scans in an account.

      Parameters:
      summaries - A list of ScanSummary objects with information about all scans in an account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaries

      A list of ScanSummary objects with information about all scans in an account.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to summaries(List<ScanSummary>).

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