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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classRepresents the Attachment parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilderBaseRequestBuilder.ProjectExcludeParameter
- 
Field SummaryFields inherited from class org.azd.abstractions.BaseRequestBuilderaccessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
- 
Constructor SummaryConstructorsConstructorDescriptionAttachmentsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.
- 
Method SummaryModifier 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.BaseRequestBuilderbuilder
- 
Constructor Details- 
AttachmentsRequestBuilderpublic 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- 
getAsyncpublic 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.
 
- 
listAsyncGets 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.
 
- 
getpublic 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.
 
- 
listGets 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.
 
 
-