Interface AnalyzedResource.Builder

    • Method Detail

      • resourceArn

        AnalyzedResource.Builder resourceArn​(String resourceArn)

        The ARN of the resource that was analyzed.

        Parameters:
        resourceArn - The ARN of the resource that was analyzed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceType

        AnalyzedResource.Builder resourceType​(String resourceType)

        The type of the resource that was analyzed.

        Parameters:
        resourceType - The type of the resource that was analyzed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • resourceType

        AnalyzedResource.Builder resourceType​(ResourceType resourceType)

        The type of the resource that was analyzed.

        Parameters:
        resourceType - The type of the resource that was analyzed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • createdAt

        AnalyzedResource.Builder createdAt​(Instant createdAt)

        The time at which the finding was created.

        Parameters:
        createdAt - The time at which the finding was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • analyzedAt

        AnalyzedResource.Builder analyzedAt​(Instant analyzedAt)

        The time at which the resource was analyzed.

        Parameters:
        analyzedAt - The time at which the resource was analyzed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updatedAt

        AnalyzedResource.Builder updatedAt​(Instant updatedAt)

        The time at which the finding was updated.

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

        AnalyzedResource.Builder isPublic​(Boolean isPublic)

        Indicates whether the policy that generated the finding grants public access to the resource.

        Parameters:
        isPublic - Indicates whether the policy that generated the finding grants public access to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        AnalyzedResource.Builder actions​(Collection<String> actions)

        The actions that an external principal is granted permission to use by the policy that generated the finding.

        Parameters:
        actions - The actions that an external principal is granted permission to use by the policy that generated the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        AnalyzedResource.Builder actions​(String... actions)

        The actions that an external principal is granted permission to use by the policy that generated the finding.

        Parameters:
        actions - The actions that an external principal is granted permission to use by the policy that generated the finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sharedVia

        AnalyzedResource.Builder sharedVia​(Collection<String> sharedVia)

        Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.

        Parameters:
        sharedVia - Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sharedVia

        AnalyzedResource.Builder sharedVia​(String... sharedVia)

        Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.

        Parameters:
        sharedVia - Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        AnalyzedResource.Builder status​(String status)

        The current status of the finding generated from the analyzed resource.

        Parameters:
        status - The current status of the finding generated from the analyzed resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • status

        AnalyzedResource.Builder status​(FindingStatus status)

        The current status of the finding generated from the analyzed resource.

        Parameters:
        status - The current status of the finding generated from the analyzed resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingStatus, FindingStatus
      • resourceOwnerAccount

        AnalyzedResource.Builder resourceOwnerAccount​(String resourceOwnerAccount)

        The Amazon Web Services account ID that owns the resource.

        Parameters:
        resourceOwnerAccount - The Amazon Web Services account ID that owns the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        AnalyzedResource.Builder error​(String error)

        An error message.

        Parameters:
        error - An error message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.