Interface EntityItem.Builder

  • Method Details

    • identifier

      EntityItem.Builder identifier(EntityIdentifier identifier)

      The identifier of the entity.

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

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

      The identifier of the entity.

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

      EntityItem.Builder attributes(Map<String,AttributeValue> attributes)

      A list of attributes for the entity.

      Parameters:
      attributes - A list of attributes for the entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parents

      The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.

      A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.

      Parameters:
      parents - The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.

      A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parents

      EntityItem.Builder parents(EntityIdentifier... parents)

      The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.

      A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.

      Parameters:
      parents - The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.

      A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parents

      The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.

      A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.

      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 parents(List<EntityIdentifier>).

      Parameters:
      parents - 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: