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.

        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

        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.

        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.
      • 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.
      • 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.