Interface Finding.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Finding.Builder,Finding>, SdkBuilder<Finding.Builder,Finding>, SdkPojo
Enclosing class:
Finding

@Mutable @NotThreadSafe public static interface Finding.Builder extends SdkPojo, CopyableBuilder<Finding.Builder,Finding>
  • Method Details

    • awsAccountId

      Finding.Builder awsAccountId(String awsAccountId)

      The Amazon Web Services account ID associated with the finding.

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

      Finding.Builder codeVulnerabilityDetails(CodeVulnerabilityDetails codeVulnerabilityDetails)

      Details about the code vulnerability identified in a Lambda function used to filter findings.

      Parameters:
      codeVulnerabilityDetails - Details about the code vulnerability identified in a Lambda function used to filter findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeVulnerabilityDetails

      default Finding.Builder codeVulnerabilityDetails(Consumer<CodeVulnerabilityDetails.Builder> codeVulnerabilityDetails)

      Details about the code vulnerability identified in a Lambda function used to filter findings.

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

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

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

      Finding.Builder description(String description)

      The description of the finding.

      Parameters:
      description - The description of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • epss

      The finding's EPSS score.

      Parameters:
      epss - The finding's EPSS score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • epss

      The finding's EPSS score.

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

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

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

      Finding.Builder exploitAvailable(String exploitAvailable)

      If a finding discovered in your environment has an exploit available.

      Parameters:
      exploitAvailable - If a finding discovered in your environment has an exploit available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exploitAvailable

      Finding.Builder exploitAvailable(ExploitAvailable exploitAvailable)

      If a finding discovered in your environment has an exploit available.

      Parameters:
      exploitAvailable - If a finding discovered in your environment has an exploit available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exploitabilityDetails

      Finding.Builder exploitabilityDetails(ExploitabilityDetails exploitabilityDetails)

      The details of an exploit available for a finding discovered in your environment.

      Parameters:
      exploitabilityDetails - The details of an exploit available for a finding discovered in your environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exploitabilityDetails

      default Finding.Builder exploitabilityDetails(Consumer<ExploitabilityDetails.Builder> exploitabilityDetails)

      The details of an exploit available for a finding discovered in your environment.

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

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

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

      Finding.Builder findingArn(String findingArn)

      The Amazon Resource Number (ARN) of the finding.

      Parameters:
      findingArn - The Amazon Resource Number (ARN) of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firstObservedAt

      Finding.Builder firstObservedAt(Instant firstObservedAt)

      The date and time that the finding was first observed.

      Parameters:
      firstObservedAt - The date and time that the finding was first observed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixAvailable

      Finding.Builder fixAvailable(String fixAvailable)

      Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

      Parameters:
      fixAvailable - Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fixAvailable

      Finding.Builder fixAvailable(FixAvailable fixAvailable)

      Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

      Parameters:
      fixAvailable - Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • inspectorScore

      Finding.Builder inspectorScore(Double inspectorScore)

      The Amazon Inspector score given to the finding.

      Parameters:
      inspectorScore - The Amazon Inspector score given to the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectorScoreDetails

      Finding.Builder inspectorScoreDetails(InspectorScoreDetails inspectorScoreDetails)

      An object that contains details of the Amazon Inspector score.

      Parameters:
      inspectorScoreDetails - An object that contains details of the Amazon Inspector score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectorScoreDetails

      default Finding.Builder inspectorScoreDetails(Consumer<InspectorScoreDetails.Builder> inspectorScoreDetails)

      An object that contains details of the Amazon Inspector score.

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

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

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

      Finding.Builder lastObservedAt(Instant lastObservedAt)

      The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.

      Parameters:
      lastObservedAt - The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkReachabilityDetails

      Finding.Builder networkReachabilityDetails(NetworkReachabilityDetails networkReachabilityDetails)

      An object that contains the details of a network reachability finding.

      Parameters:
      networkReachabilityDetails - An object that contains the details of a network reachability finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkReachabilityDetails

      default Finding.Builder networkReachabilityDetails(Consumer<NetworkReachabilityDetails.Builder> networkReachabilityDetails)

      An object that contains the details of a network reachability finding.

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

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

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

      Finding.Builder packageVulnerabilityDetails(PackageVulnerabilityDetails packageVulnerabilityDetails)

      An object that contains the details of a package vulnerability finding.

      Parameters:
      packageVulnerabilityDetails - An object that contains the details of a package vulnerability finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • packageVulnerabilityDetails

      default Finding.Builder packageVulnerabilityDetails(Consumer<PackageVulnerabilityDetails.Builder> packageVulnerabilityDetails)

      An object that contains the details of a package vulnerability finding.

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

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

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

      Finding.Builder remediation(Remediation remediation)

      An object that contains the details about how to remediate a finding.

      Parameters:
      remediation - An object that contains the details about how to remediate a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediation

      default Finding.Builder remediation(Consumer<Remediation.Builder> remediation)

      An object that contains the details about how to remediate a finding.

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

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

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

      Finding.Builder resources(Collection<Resource> resources)

      Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.

      Parameters:
      resources - Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Finding.Builder resources(Resource... resources)

      Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.

      Parameters:
      resources - Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Finding.Builder resources(Consumer<Resource.Builder>... resources)

      Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.

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

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

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

      Finding.Builder severity(String severity)

      The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.

      Parameters:
      severity - The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      Finding.Builder severity(Severity severity)

      The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.

      Parameters:
      severity - The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Finding.Builder status(String status)

      The status of the finding.

      Parameters:
      status - The status of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the finding.

      Parameters:
      status - The status of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • title

      Finding.Builder title(String title)

      The title of the finding.

      Parameters:
      title - The title of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Finding.Builder type(String type)

      The type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide.

      Parameters:
      type - The type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide.

      Parameters:
      type - The type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      Finding.Builder updatedAt(Instant updatedAt)

      The date and time the finding was last updated at.

      Parameters:
      updatedAt - The date and time the finding was last updated at.
      Returns:
      Returns a reference to this object so that method calls can be chained together.