Package org.azd.build.timeline
Class TimelineRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.timeline.TimelineRequestBuilder
Provides functionality to work with Build Timeline Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Represents the configuration to pass for query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionTimelineRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int buildId) Gets details for a build.Gets details for a build.get
(int buildId, String timelineId, Consumer<TimelineRequestBuilder.RequestConfiguration> requestConfiguration) Gets details for a build.getAsync
(int buildId) Gets details for a build.Gets details for a build.getAsync
(int buildId, String timelineId, Consumer<TimelineRequestBuilder.RequestConfiguration> requestConfiguration) Gets details for a build.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
TimelineRequestBuilder
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
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
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
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
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.
-