Interface ResourceV2.Builder

    • Method Detail

      • uid

        ResourceV2.Builder uid​(String uid)

        The unique identifier of the resource.

        Parameters:
        uid - The unique identifier of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        ResourceV2.Builder name​(String name)

        The name of the resource.

        Parameters:
        name - The name of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountId

        ResourceV2.Builder accountId​(String accountId)

        The Amazon Web Services account ID to which the resource belongs.

        Parameters:
        accountId - The Amazon Web Services account ID to which the resource belongs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceType

        ResourceV2.Builder resourceType​(String resourceType)

        The type of the Amazon Web Services resource.

        Parameters:
        resourceType - The type of the Amazon Web Services resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FindingResourceType, FindingResourceType
      • region

        ResourceV2.Builder region​(String region)

        The Amazon Web Services Region where the resource belongs.

        Parameters:
        region - The Amazon Web Services Region where the resource belongs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • service

        ResourceV2.Builder service​(String service)

        The Amazon Web Services service of the resource.

        Parameters:
        service - The Amazon Web Services service of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cloudPartition

        ResourceV2.Builder cloudPartition​(String cloudPartition)

        The cloud partition within the Amazon Web Services Region to which the resource belongs.

        Parameters:
        cloudPartition - The cloud partition within the Amazon Web Services Region to which the resource belongs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ResourceV2.Builder tags​(Collection<Tag> tags)

        Contains information about the tags associated with the resource.

        Parameters:
        tags - Contains information about the tags associated with the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ResourceV2.Builder tags​(Tag... tags)

        Contains information about the tags associated with the resource.

        Parameters:
        tags - Contains information about the tags associated with the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ResourceV2.Builder tags​(Consumer<Tag.Builder>... tags)

        Contains information about the tags associated with the resource.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • data

        ResourceV2.Builder data​(ResourceData data)

        Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.

        Parameters:
        data - Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.