Package org.azd.build.builds
Class BuildChangesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildChangesRequestBuilder
Provides the functionality to manage Build Changes Api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRepresents the query parameters.static classRequest configuration object for the query parameters.static classRequest 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
ConstructorsConstructorDescriptionBuildChangesRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget(int buildId) Gets the changes associated with a buildget(int buildId, Consumer<BuildChangesRequestBuilder.RequestConfiguration> requestConfiguration) Gets the changes associated with a buildgetAsync(int buildId) Gets the changes associated with a buildgetAsync(int buildId, Consumer<BuildChangesRequestBuilder.RequestConfiguration> requestConfiguration) Gets the changes associated with a buildlist(Consumer<BuildChangesRequestBuilder.ListRequestConfiguration> requestConfiguration) Gets the changes made to the repository between two given builds.listAsync(Consumer<BuildChangesRequestBuilder.ListRequestConfiguration> requestConfiguration) Gets the changes made to the repository between two given builds.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
BuildChangesRequestBuilder
public BuildChangesRequestBuilder(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
Gets the changes associated with a build- Parameters:
buildId- ID of the build.- Returns:
- Future object of BuildChanges
BuildChanges - Throws:
AzDException- Default Api exception handler
-
getAsync
public CompletableFuture<BuildChanges> getAsync(int buildId, Consumer<BuildChangesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the changes associated with a build- Parameters:
buildId- ID of the build.requestConfiguration- Consumer of request configuration object.- Returns:
- Future object of BuildChanges
BuildChanges - Throws:
AzDException- Default Api exception handler
-
listAsync
public CompletableFuture<BuildChanges> listAsync(Consumer<BuildChangesRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Gets the changes made to the repository between two given builds.- Parameters:
requestConfiguration- Consumer of request configuration object.- Returns:
- BuildChanges future object
BuildChanges - Throws:
AzDException- Default Api Exception handler.
-
get
Gets the changes associated with a build- Parameters:
buildId- ID of the build.- Returns:
- Future object of BuildChanges
BuildChanges - Throws:
AzDException- Default Api exception handler
-
get
public BuildChanges get(int buildId, Consumer<BuildChangesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets the changes associated with a build- Parameters:
buildId- ID of the build.requestConfiguration- Consumer of request configuration object.- Returns:
- Future object of BuildChanges
BuildChanges - Throws:
AzDException- Default Api exception handler
-
list
public BuildChanges list(Consumer<BuildChangesRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Gets the changes made to the repository between two given builds.- Parameters:
requestConfiguration- Consumer of request configuration object.- Returns:
- BuildChanges future object
BuildChanges - Throws:
AzDException- Default Api Exception handler.
-