Class DownloadItem


public class DownloadItem extends EntityPropertiesBuilder<DownloadItemProperties>
Represents a single download request.
  • Constructor Details

    • DownloadItem

      public DownloadItem()
  • Method Details

    • allArtifacts

      public DownloadItem allArtifacts(boolean allArtifacts)
      Requests downloading all the artifacts provided by the source plan. If specific artifact was selected, the selection is removed.
    • artifact

      public DownloadItem artifact(@NotNull @NotNull String name)
      Requests downloading a specific artifact. Sets "allArtifacts" to false.
    • path

      public DownloadItem path(@NotNull @NotNull String path)
      Specifies the path artifact should be downloaded to. The path can be both absolute and relative to the build working directory. Empty by default.
    • build

      protected DownloadItemProperties build()
      Specified by:
      build in class EntityPropertiesBuilder<DownloadItemProperties>