Class TimelineRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.timeline.TimelineRequestBuilder

public class TimelineRequestBuilder extends BaseRequestBuilder
Provides functionality to work with Build Timeline Api.
  • Constructor Details

    • TimelineRequestBuilder

      public TimelineRequestBuilder(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<Timeline> getAsync(int buildId) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.
    • getAsync

      public CompletableFuture<Timeline> getAsync(int buildId, String timelineId) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      timelineId - Id of the build timeline.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.
    • getAsync

      public CompletableFuture<Timeline> getAsync(int buildId, String timelineId, Consumer<TimelineRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      timelineId - Id of the build timeline.
      requestConfiguration - Consumer of query parameters to filter.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public Timeline get(int buildId) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public Timeline get(int buildId, String timelineId) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      timelineId - Id of the build timeline.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public Timeline get(int buildId, String timelineId, Consumer<TimelineRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException
      Gets details for a build.
      Parameters:
      buildId - Id of the build. use getBuilds() to list all the builds.
      timelineId - Id of the build timeline.
      requestConfiguration - Consumer of query parameters to filter.
      Returns:
      a timeline object. Timeline
      Throws:
      AzDException - Default Api Exception handler.