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

    • equals

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

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

      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

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

      @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

      @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

      @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

      @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

      @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

      @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

      @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

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

      @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

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

      @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

      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

      @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