Interface Principal.Builder

    • Method Detail

      • name

        Principal.Builder name​(String name)

        The name of the user or group.

        Parameters:
        name - The name of the user or group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • access

        Principal.Builder access​(String access)

        Whether to allow or deny document access to the principal.

        Parameters:
        access - Whether to allow or deny document access to the principal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ReadAccessType, ReadAccessType
      • access

        Principal.Builder access​(ReadAccessType access)

        Whether to allow or deny document access to the principal.

        Parameters:
        access - Whether to allow or deny document access to the principal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ReadAccessType, ReadAccessType
      • dataSourceId

        Principal.Builder dataSourceId​(String dataSourceId)

        The identifier of the data source the principal should access documents from.

        Parameters:
        dataSourceId - The identifier of the data source the principal should access documents from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.