Interface Resource.Builder

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

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

    • type

      The type of the resource that details are provided for. If possible, set Type to one of the supported resource types. For example, if the resource is an EC2 instance, then set Type to AwsEc2Instance.

      If the resource does not match any of the provided types, then set Type to Other.

      Length Constraints: Minimum length of 1. Maximum length of 256.

      Parameters:
      type - The type of the resource that details are provided for. If possible, set Type to one of the supported resource types. For example, if the resource is an EC2 instance, then set Type to AwsEc2Instance.

      If the resource does not match any of the provided types, then set Type to Other.

      Length Constraints: Minimum length of 1. Maximum length of 256.

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

      The canonical identifier for the given resource type.

      Parameters:
      id - The canonical identifier for the given resource type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partition

      Resource.Builder partition(String partition)

      The canonical Amazon Web Services partition name that the Region is assigned to.

      Parameters:
      partition - The canonical Amazon Web Services partition name that the Region is assigned to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • partition

      Resource.Builder partition(Partition partition)

      The canonical Amazon Web Services partition name that the Region is assigned to.

      Parameters:
      partition - The canonical Amazon Web Services partition name that the Region is assigned to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • region

      Resource.Builder region(String region)

      The canonical Amazon Web Services external Region name where this resource is located.

      Length Constraints: Minimum length of 1. Maximum length of 16.

      Parameters:
      region - The canonical Amazon Web Services external Region name where this resource is located.

      Length Constraints: Minimum length of 1. Maximum length of 16.

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

      Resource.Builder resourceRole(String resourceRole)

      Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,

      Parameters:
      resourceRole - Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of Amazon Web Services tags associated with a resource at the time the finding was processed. Tags must follow Amazon Web Services tag naming limits and requirements.

      Parameters:
      tags - A list of Amazon Web Services tags associated with a resource at the time the finding was processed. Tags must follow Amazon Web Services tag naming limits and requirements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataClassification

      Resource.Builder dataClassification(DataClassificationDetails dataClassification)

      Contains information about sensitive data that was detected on the resource.

      Parameters:
      dataClassification - Contains information about sensitive data that was detected on the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataClassification

      default Resource.Builder dataClassification(Consumer<DataClassificationDetails.Builder> dataClassification)

      Contains information about sensitive data that was detected on the resource.

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

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

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

      Additional details about the resource related to a finding.

      Parameters:
      details - Additional details about the resource related to a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • details

      Additional details about the resource related to a finding.

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

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

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

      Resource.Builder applicationName(String applicationName)

      The name of the application that is related to a finding.

      Parameters:
      applicationName - The name of the application that is related to a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applicationArn

      Resource.Builder applicationArn(String applicationArn)

      The Amazon Resource Name (ARN) of the application that is related to a finding.

      Parameters:
      applicationArn - The Amazon Resource Name (ARN) of the application that is related to a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.