Interface Resource.Builder

    • Method Detail

      • type

        Resource.Builder type​(String 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.

        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.

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

        Resource.Builder id​(String 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, Partition
      • 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:
        Partition, Partition
      • region

        Resource.Builder region​(String region)

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

        Parameters:
        region - The canonical Amazon Web Services external Region name where this resource is located.
        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

        Resource.Builder tags​(Map<String,​String> tags)

        A list of Amazon Web Services tags associated with a resource at the time the finding was processed.

        Parameters:
        tags - A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
        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.
      • details

        Resource.Builder details​(ResourceDetails 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.