Class DeploymentRepository

All Implemented Interfaces:
Serializable, InputLocationTracker

@Experimental @Generated @ThreadSafe @Immutable public class DeploymentRepository extends Repository implements Serializable, InputLocationTracker
Deployment repository contains the information needed for deploying to the remote repository, which adds uniqueVersion property to usual repositories for download.
See Also:
  • Method Details Link icon

    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Repository
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Repository
    • isUniqueVersion Link icon

      public boolean isUniqueVersion()
      Whether to assign snapshots a unique version comprised of the timestamp and build number, or to use the same version each time
      Returns:
      a boolean
    • with Link icon

      Creates a new builder with this object as the basis.
      Overrides:
      with in class Repository
      Returns:
      a Builder
    • withId Link icon

      @Nonnull public DeploymentRepository withId(String id)
      Creates a new DeploymentRepository instance using the specified id.
      Overrides:
      withId in class Repository
      Parameters:
      id - the new String to use
      Returns:
      a DeploymentRepository with the specified id
    • withName Link icon

      @Nonnull public DeploymentRepository withName(String name)
      Creates a new DeploymentRepository instance using the specified name.
      Overrides:
      withName in class Repository
      Parameters:
      name - the new String to use
      Returns:
      a DeploymentRepository with the specified name
    • withUrl Link icon

      @Nonnull public DeploymentRepository withUrl(String url)
      Creates a new DeploymentRepository instance using the specified url.
      Overrides:
      withUrl in class Repository
      Parameters:
      url - the new String to use
      Returns:
      a DeploymentRepository with the specified url
    • withLayout Link icon

      @Nonnull public DeploymentRepository withLayout(String layout)
      Creates a new DeploymentRepository instance using the specified layout.
      Overrides:
      withLayout in class Repository
      Parameters:
      layout - the new String to use
      Returns:
      a DeploymentRepository with the specified layout
    • withReleases Link icon

      @Nonnull public DeploymentRepository withReleases(RepositoryPolicy releases)
      Creates a new DeploymentRepository instance using the specified releases.
      Overrides:
      withReleases in class Repository
      Parameters:
      releases - the new RepositoryPolicy to use
      Returns:
      a DeploymentRepository with the specified releases
    • withSnapshots Link icon

      @Nonnull public DeploymentRepository withSnapshots(RepositoryPolicy snapshots)
      Creates a new DeploymentRepository instance using the specified snapshots.
      Overrides:
      withSnapshots in class Repository
      Parameters:
      snapshots - the new RepositoryPolicy to use
      Returns:
      a DeploymentRepository with the specified snapshots
    • withUniqueVersion Link icon

      @Nonnull public DeploymentRepository withUniqueVersion(boolean uniqueVersion)
      Creates a new DeploymentRepository instance using the specified uniqueVersion.
      Parameters:
      uniqueVersion - the new boolean to use
      Returns:
      a DeploymentRepository with the specified uniqueVersion
    • newInstance Link icon

      @Nonnull public static DeploymentRepository newInstance()
      Creates a new DeploymentRepository instance. Equivalent to newInstance(true).
      Returns:
      a new DeploymentRepository
      See Also:
    • newInstance Link icon

      @Nonnull public static DeploymentRepository newInstance(boolean withDefaults)
      Creates a new DeploymentRepository instance using default values or not. Equivalent to newBuilder(withDefaults).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new DeploymentRepository
    • newBuilder Link icon

      @Nonnull public static DeploymentRepository.Builder newBuilder()
      Creates a new DeploymentRepository builder instance. Equivalent to newBuilder(true).
      Returns:
      a new Builder
      See Also:
    • newBuilder Link icon

      @Nonnull public static DeploymentRepository.Builder newBuilder(boolean withDefaults)
      Creates a new DeploymentRepository builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder Link icon

      Creates a new DeploymentRepository builder instance using the specified object as a basis. Equivalent to newBuilder(from, false).
      Parameters:
      from - the DeploymentRepository instance to use as a basis
      Returns:
      a new Builder
    • newBuilder Link icon

      @Nonnull public static DeploymentRepository.Builder newBuilder(DeploymentRepository from, boolean forceCopy)
      Creates a new DeploymentRepository builder instance using the specified object as a basis.
      Parameters:
      from - the DeploymentRepository instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder