Interface EntityReference.Builder

  • Method Details

    • unspecified

      EntityReference.Builder unspecified(Boolean unspecified)

      Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.

      Parameters:
      unspecified - Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identifier

      EntityReference.Builder identifier(EntityIdentifier identifier)

      The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.

      Parameters:
      identifier - The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identifier

      default EntityReference.Builder identifier(Consumer<EntityIdentifier.Builder> identifier)

      The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.

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

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

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