@Experimental @Generated @ThreadSafe @Immutable public class DeploymentRepository extends Repository implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentRepository.Builder
Builder class used to create DeploymentRepository instances.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
int |
hashCode() |
boolean |
isUniqueVersion()
Whether to assign snapshots a unique version comprised of the timestamp and
build number, or to use the same version each time
|
static DeploymentRepository.Builder |
newBuilder()
Creates a new
DeploymentRepository builder instance. |
static DeploymentRepository.Builder |
newBuilder(boolean withDefaults)
Creates a new
DeploymentRepository builder instance using default values or not. |
static DeploymentRepository.Builder |
newBuilder(DeploymentRepository from)
Creates a new
DeploymentRepository builder instance using the specified object as a basis. |
static DeploymentRepository.Builder |
newBuilder(DeploymentRepository from,
boolean forceCopy)
Creates a new
DeploymentRepository builder instance using the specified object as a basis. |
static DeploymentRepository |
newInstance()
Creates a new
DeploymentRepository instance. |
static DeploymentRepository |
newInstance(boolean withDefaults)
Creates a new
DeploymentRepository instance using default values or not. |
DeploymentRepository.Builder |
with()
Creates a new builder with this object as the basis.
|
DeploymentRepository |
withId(String id)
Creates a new
DeploymentRepository instance using the specified id. |
DeploymentRepository |
withLayout(String layout)
Creates a new
DeploymentRepository instance using the specified layout. |
DeploymentRepository |
withName(String name)
Creates a new
DeploymentRepository instance using the specified name. |
DeploymentRepository |
withReleases(RepositoryPolicy releases)
Creates a new
DeploymentRepository instance using the specified releases. |
DeploymentRepository |
withSnapshots(RepositoryPolicy snapshots)
Creates a new
DeploymentRepository instance using the specified snapshots. |
DeploymentRepository |
withUniqueVersion(boolean uniqueVersion)
Creates a new
DeploymentRepository instance using the specified uniqueVersion. |
DeploymentRepository |
withUrl(String url)
Creates a new
DeploymentRepository instance using the specified url. |
getReleases, getSnapshots, newBuilder, newBuilder
getId, getLayout, getName, getUrl, newBuilder, newBuilder
public boolean equals(Object o)
equals
in class Repository
public int hashCode()
hashCode
in class Repository
public boolean isUniqueVersion()
boolean
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class Repository
@Nonnull public DeploymentRepository.Builder with()
with
in class Repository
Builder
@Nonnull public DeploymentRepository withId(String id)
DeploymentRepository
instance using the specified id.withId
in class Repository
id
- the new String
to useDeploymentRepository
with the specified id@Nonnull public DeploymentRepository withName(String name)
DeploymentRepository
instance using the specified name.withName
in class Repository
name
- the new String
to useDeploymentRepository
with the specified name@Nonnull public DeploymentRepository withUrl(String url)
DeploymentRepository
instance using the specified url.withUrl
in class Repository
url
- the new String
to useDeploymentRepository
with the specified url@Nonnull public DeploymentRepository withLayout(String layout)
DeploymentRepository
instance using the specified layout.withLayout
in class Repository
layout
- the new String
to useDeploymentRepository
with the specified layout@Nonnull public DeploymentRepository withReleases(RepositoryPolicy releases)
DeploymentRepository
instance using the specified releases.withReleases
in class Repository
releases
- the new RepositoryPolicy
to useDeploymentRepository
with the specified releases@Nonnull public DeploymentRepository withSnapshots(RepositoryPolicy snapshots)
DeploymentRepository
instance using the specified snapshots.withSnapshots
in class Repository
snapshots
- the new RepositoryPolicy
to useDeploymentRepository
with the specified snapshots@Nonnull public DeploymentRepository withUniqueVersion(boolean uniqueVersion)
DeploymentRepository
instance using the specified uniqueVersion.uniqueVersion
- the new boolean
to useDeploymentRepository
with the specified uniqueVersion@Nonnull public static DeploymentRepository newInstance()
DeploymentRepository
instance.
Equivalent to newInstance( true )
.DeploymentRepository
newInstance(boolean)
@Nonnull public static DeploymentRepository newInstance(boolean withDefaults)
DeploymentRepository
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedDeploymentRepository
@Nonnull public static DeploymentRepository.Builder newBuilder()
DeploymentRepository
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static DeploymentRepository.Builder newBuilder(boolean withDefaults)
DeploymentRepository
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static DeploymentRepository.Builder newBuilder(DeploymentRepository from)
DeploymentRepository
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the DeploymentRepository
instance to use as a basisBuilder
@Nonnull public static DeploymentRepository.Builder newBuilder(DeploymentRepository from, boolean forceCopy)
DeploymentRepository
builder instance using the specified object as a basis.from
- the DeploymentRepository
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.