Interface BatchGetCommitsResponse.Builder

    • Method Detail

      • commits

        BatchGetCommitsResponse.Builder commits​(Collection<Commit> commits)

        An array of commit data type objects, each of which contains information about a specified commit.

        Parameters:
        commits - An array of commit data type objects, each of which contains information about a specified commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commits

        BatchGetCommitsResponse.Builder commits​(Commit... commits)

        An array of commit data type objects, each of which contains information about a specified commit.

        Parameters:
        commits - An array of commit data type objects, each of which contains information about a specified commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commits

        BatchGetCommitsResponse.Builder commits​(Consumer<Commit.Builder>... commits)

        An array of commit data type objects, each of which contains information about a specified commit.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #commits(List).

        Parameters:
        commits - a consumer that will call methods on Commit.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #commits(java.util.Collection)
      • errors

        BatchGetCommitsResponse.Builder errors​(Collection<BatchGetCommitsError> errors)

        Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.

        Parameters:
        errors - Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errors

        BatchGetCommitsResponse.Builder errors​(BatchGetCommitsError... errors)

        Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.

        Parameters:
        errors - Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.