Interface RepositoryAggregationResponse.Builder

  • Method Details

    • repository

      The name of the repository associated with the findings.

      Parameters:
      repository - The name of the repository associated with the findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      The ID of the Amazon Web Services account associated with the findings.

      Parameters:
      accountId - The ID of the Amazon Web Services account associated with the findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudProvider

      RepositoryAggregationResponse.Builder cloudProvider(String cloudProvider)

      The cloud service provider associated with this repository aggregation. Valid values:

      • AWS – Findings from Amazon Web Services resources.

      • AZURE – Findings from Microsoft Azure resources.

      Parameters:
      cloudProvider - The cloud service provider associated with this repository aggregation. Valid values:

      • AWS – Findings from Amazon Web Services resources.

      • AZURE – Findings from Microsoft Azure resources.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • cloudProvider

      RepositoryAggregationResponse.Builder cloudProvider(Provider cloudProvider)

      The cloud service provider associated with this repository aggregation. Valid values:

      • AWS – Findings from Amazon Web Services resources.

      • AZURE – Findings from Microsoft Azure resources.

      Parameters:
      cloudProvider - The cloud service provider associated with this repository aggregation. Valid values:

      • AWS – Findings from Amazon Web Services resources.

      • AZURE – Findings from Microsoft Azure resources.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • cloudPartition

      RepositoryAggregationResponse.Builder cloudPartition(String cloudPartition)

      The cloud infrastructure partition associated with this repository aggregation. Valid values:

      • aws – Amazon Web Services commercial Regions.

      • aws-cn – Amazon Web Services China Regions.

      • aws-us-gov – Amazon Web Services GovCloud (US) Regions.

      • AzureCloud – Azure commercial Regions.

      Parameters:
      cloudPartition - The cloud infrastructure partition associated with this repository aggregation. Valid values:

      • aws – Amazon Web Services commercial Regions.

      • aws-cn – Amazon Web Services China Regions.

      • aws-us-gov – Amazon Web Services GovCloud (US) Regions.

      • AzureCloud – Azure commercial Regions.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudRegion

      The cloud Region associated with this repository aggregation. The value format depends on the cloud provider:

      • An Amazon Web Services Region, such as us-east-1.

      • An Azure region, such as eastus.

      Parameters:
      cloudRegion - The cloud Region associated with this repository aggregation. The value format depends on the cloud provider:

      • An Amazon Web Services Region, such as us-east-1.

      • An Azure region, such as eastus.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudOrgId

      The cloud organization ID for the repository aggregation.

      Parameters:
      cloudOrgId - The cloud organization ID for the repository aggregation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudAccountId

      RepositoryAggregationResponse.Builder cloudAccountId(String cloudAccountId)

      The cloud account ID for the repository aggregation.

      Parameters:
      cloudAccountId - The cloud account ID for the repository aggregation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severityCounts

      RepositoryAggregationResponse.Builder severityCounts(SeverityCounts severityCounts)

      An object that represent the count of matched findings per severity.

      Parameters:
      severityCounts - An object that represent the count of matched findings per severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severityCounts

      default RepositoryAggregationResponse.Builder severityCounts(Consumer<SeverityCounts.Builder> severityCounts)

      An object that represent the count of matched findings per severity.

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

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

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

      RepositoryAggregationResponse.Builder affectedImages(Long affectedImages)

      The number of container images impacted by the findings.

      Parameters:
      affectedImages - The number of container images impacted by the findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.