Interface CreateScanResponse.Builder

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

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

    • resourceId

      CreateScanResponse.Builder resourceId(ResourceId resourceId)

      The identifier for the resource object that contains resources that were scanned.

      Parameters:
      resourceId - The identifier for the resource object that contains resources that were scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceId

      default CreateScanResponse.Builder resourceId(Consumer<ResourceId.Builder> resourceId)

      The identifier for the resource object that contains resources that were scanned.

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

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

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

      UUID that identifies the individual scan run.

      Parameters:
      runId - UUID that identifies the individual scan run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scanName

      CreateScanResponse.Builder scanName(String scanName)

      The name of the scan.

      Parameters:
      scanName - The name of the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scanNameArn

      CreateScanResponse.Builder scanNameArn(String scanNameArn)

      The ARN for the scan name.

      Parameters:
      scanNameArn - The ARN for the scan name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scanState

      CreateScanResponse.Builder scanState(String scanState)

      The current state of the scan. Returns either InProgress, Successful, or Failed.

      Parameters:
      scanState - The current state of the scan. Returns either InProgress, Successful, or Failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanState

      CreateScanResponse.Builder scanState(ScanState scanState)

      The current state of the scan. Returns either InProgress, Successful, or Failed.

      Parameters:
      scanState - The current state of the scan. Returns either InProgress, Successful, or Failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: