Interface GetScanResponse.Builder

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

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

    • analysisType

      GetScanResponse.Builder analysisType(String analysisType)

      The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.

      Parameters:
      analysisType - The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • analysisType

      GetScanResponse.Builder analysisType(AnalysisType analysisType)

      The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.

      Parameters:
      analysisType - The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      GetScanResponse.Builder createdAt(Instant createdAt)

      The time the scan was created.

      Parameters:
      createdAt - The time the scan was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      GetScanResponse.Builder errorMessage(String errorMessage)

      Details about the error that causes a scan to fail to be retrieved.

      Parameters:
      errorMessage - Details about the error that causes a scan to fail to be retrieved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • numberOfRevisions

      GetScanResponse.Builder numberOfRevisions(Long numberOfRevisions)

      The number of times a scan has been re-run on a revised resource.

      Parameters:
      numberOfRevisions - The number of times a scan has been re-run on a revised resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      GetScanResponse.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

      GetScanResponse.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

      GetScanResponse.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

      GetScanResponse.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:
    • updatedAt

      GetScanResponse.Builder updatedAt(Instant updatedAt)

      The time when the scan was last updated. Only available for STANDARD scan types.

      Parameters:
      updatedAt - The time when the scan was last updated. Only available for STANDARD scan types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.