Interface Resource.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Resource.Builder,Resource>, SdkBuilder<Resource.Builder,Resource>, SdkPojo
Enclosing class:
Resource

@Mutable @NotThreadSafe public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
  • Method Details

    • type

      The type of resource.

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

      The type of resource.

      Parameters:
      type - The type of resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      The ID of the resource.

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

      Resource.Builder partition(String partition)

      The partition of the resource.

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

      Resource.Builder region(String region)

      The Amazon Web Services Region the impacted resource is located in.

      Parameters:
      region - The Amazon Web Services Region the impacted resource is located in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags attached to the resource.

      Parameters:
      tags - The tags attached to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • details

      An object that contains details about the resource involved in a finding.

      Parameters:
      details - An object that contains details about the resource involved in a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • details

      An object that contains details about the resource involved in a finding.

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

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

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

      Resource.Builder provider(String provider)

      The cloud provider of the resource.

      Parameters:
      provider - The cloud provider of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • provider

      Resource.Builder provider(Provider provider)

      The cloud provider of the resource.

      Parameters:
      provider - The cloud provider of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • providerAccountId

      Resource.Builder providerAccountId(String providerAccountId)

      The cloud provider account ID of the resource.

      Parameters:
      providerAccountId - The cloud provider account ID of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • providerOrgId

      Resource.Builder providerOrgId(String providerOrgId)

      The cloud provider organization ID of the resource.

      Parameters:
      providerOrgId - The cloud provider organization ID of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.