Interface CreateCodeFindingRequest.Builder

  • Method Details

    • environmentId

      CreateCodeFindingRequest.Builder environmentId(String environmentId)

      The environment to ingest the finding into.

      Parameters:
      environmentId - The environment to ingest the finding into.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ocsfDocument

      CreateCodeFindingRequest.Builder ocsfDocument(Document ocsfDocument)

      The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself.

      Parameters:
      ocsfDocument - The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      CreateCodeFindingRequest.Builder clientToken(String clientToken)

      Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected.

      Parameters:
      clientToken - Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateCodeFindingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.