Package org.azd.workitemtracking.wiql
Class WiqlRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.workitemtracking.wiql.WiqlRequestBuilder
Provides functionality to work with Work item tracking Wiql Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the 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
ConstructorDescriptionWiqlRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionGets the results of the query given its WIQL.query
(String team, String query, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) Gets the results of the query given its WIQL.queryAsync
(String team, String query) Gets the results of the query given its WIQL.queryAsync
(String team, String query, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) Gets the results of the query given its WIQL.Gets the results of the query given the query ID.queryById
(String id, String team, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) Gets the results of the query given the query ID.queryByIdAsync
(String id, String team) Gets the results of the query given the query ID.queryByIdAsync
(String id, String team, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) Gets the results of the query given the query ID.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
WiqlRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
queryByIdAsync
public CompletableFuture<WorkItemQueryResult> queryByIdAsync(String id, String team) throws AzDException Gets the results of the query given the query ID.- Parameters:
id
- The query ID.team
- Team ID or team name- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
queryByIdAsync
public CompletableFuture<WorkItemQueryResult> queryByIdAsync(String id, String team, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the results of the query given the query ID.- Parameters:
id
- The query ID.team
- Team ID or team namerequestConfiguration
- Represents the query parameters.- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
queryAsync
public CompletableFuture<WorkItemQueryResult> queryAsync(String team, String query) throws AzDException Gets the results of the query given its WIQL.- Parameters:
team
- Team ID or team name- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
queryAsync
public CompletableFuture<WorkItemQueryResult> queryAsync(String team, String query, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the results of the query given its WIQL.- Parameters:
team
- Team ID or team namerequestConfiguration
- Represents the query parameters.- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
queryById
Gets the results of the query given the query ID.- Parameters:
id
- The query ID.team
- Team ID or team name- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
queryById
public WorkItemQueryResult queryById(String id, String team, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the results of the query given the query ID.- Parameters:
id
- The query ID.team
- Team ID or team namerequestConfiguration
- Represents the query parameters.- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
query
Gets the results of the query given its WIQL.- Parameters:
team
- Team ID or team name- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-
query
public WorkItemQueryResult query(String team, String query, Consumer<WiqlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the results of the query given its WIQL.- Parameters:
team
- Team ID or team namerequestConfiguration
- Represents the query parameters.- Returns:
- The result of a work item query.
WorkItemQueryResult
- Throws:
AzDException
- Default Api exception handler.
-