Package org.azd.build.attachments
Class AttachmentsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.attachments.AttachmentsRequestBuilder
Provides the functionality to manage Build Attachments Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the Attachment 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
ConstructorDescriptionAttachmentsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(Consumer<AttachmentsRequestBuilder.AttachmentParameters> attachmentParameters) Gets the attachment of a specific type that are associated with a build.getAsync
(Consumer<AttachmentsRequestBuilder.AttachmentParameters> attachmentParameters) Gets the attachment of a specific type that are associated with a build.Gets the list of attachments of a specific type that are associated with a build.Gets the list of attachments of a specific type that are associated with a build.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
AttachmentsRequestBuilder
public AttachmentsRequestBuilder(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<InputStream> getAsync(Consumer<AttachmentsRequestBuilder.AttachmentParameters> attachmentParameters) throws AzDException Gets the attachment of a specific type that are associated with a build.- Parameters:
attachmentParameters
- Consumer of Attachment parameters to get the attachment.- Returns:
- Returns a future of response stream
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Gets the list of attachments of a specific type that are associated with a build.- Parameters:
buildId
- The ID of the build.type
- The type of attachment.- Returns:
- Attachments future Object
Attachments
- Throws:
AzDException
- Default Api Exception handler.
-
get
public InputStream get(Consumer<AttachmentsRequestBuilder.AttachmentParameters> attachmentParameters) throws AzDException Gets the attachment of a specific type that are associated with a build.- Parameters:
attachmentParameters
- Consumer of Attachment parameters to get the attachment.- Returns:
- Returns a future of response stream
- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets the list of attachments of a specific type that are associated with a build.- Parameters:
buildId
- The ID of the build.type
- The type of attachment.- Returns:
- Attachments future Object
Attachments
- Throws:
AzDException
- Default Api Exception handler.
-