Interface Resource.Builder

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

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

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