Interface ResourceV2.Builder

  • Method Details

    • 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

      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:
    • resourceType

      ResourceV2.Builder resourceType(FindingResourceType 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:
    • 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

      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

      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<Tag>).

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

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

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

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

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