Class BuildWorkItemsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildWorkItemsRequestBuilder

public class BuildWorkItemsRequestBuilder extends BaseRequestBuilder
Provides functionality to manage Build work items Api.
  • Constructor Details

    • BuildWorkItemsRequestBuilder

      public BuildWorkItemsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
      Instantiates a new RequestBuilder instance and sets the default values.
      Parameters:
      organizationUrl - Represents organization location request url.
      accessTokenCredential - Access token credential object.
  • Method Details

    • getAsync

      public CompletableFuture<BuildWorkItems> getAsync(int buildId) throws AzDException
      Gets the work items associated with a build. Only work items in the same project are returned.
      Parameters:
      buildId - ID of the build.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • getAsync

      public CompletableFuture<BuildWorkItems> getAsync(int buildId, int top) throws AzDException
      Gets the work items associated with a build. Only work items in the same project are returned.
      Parameters:
      buildId - ID of the build.
      top - The maximum number of work items to return.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • getFromCommitsAsync

      public CompletableFuture<BuildWorkItems> getFromCommitsAsync(int buildId, List<String> commitId, int top) throws AzDException
      Gets the work items associated with a build, filtered to specific commits.
      Parameters:
      buildId - ID of the build.
      commitId - List of commit ids to get the work items.
      top - The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • getAsync

      Gets all the work items between two builds.
      Parameters:
      requestConfiguration - Consumer of Request configuration query parameters.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • get

      public BuildWorkItems get(int buildId) throws AzDException
      Gets the work items associated with a build. Only work items in the same project are returned.
      Parameters:
      buildId - ID of the build.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • get

      public BuildWorkItems get(int buildId, int top) throws AzDException
      Gets the work items associated with a build. Only work items in the same project are returned.
      Parameters:
      buildId - ID of the build.
      top - The maximum number of work items to return.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • getFromCommits

      public BuildWorkItems getFromCommits(int buildId, List<String> commitId, int top) throws AzDException
      Gets the work items associated with a build, filtered to specific commits.
      Parameters:
      buildId - ID of the build.
      commitId - List of commit ids to get the work items.
      top - The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.
    • get

      Gets all the work items between two builds.
      Parameters:
      requestConfiguration - Consumer of Request configuration query parameters.
      Returns:
      Future object of BuildWorkItems BuildWorkItems
      Throws:
      AzDException - Default Api exception handler.