public final class InstallRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Artifact> |
artifacts |
private java.util.Collection<Metadata> |
metadata |
private RequestTrace |
trace |
Constructor and Description |
---|
InstallRequest()
Creates an uninitialized request.
|
Modifier and Type | Method and Description |
---|---|
InstallRequest |
addArtifact(Artifact artifact)
Adds the specified artifacts for installation.
|
InstallRequest |
addMetadata(Metadata metadata)
Adds the specified metadata for installation.
|
java.util.Collection<Artifact> |
getArtifacts()
Gets the artifact to install.
|
java.util.Collection<Metadata> |
getMetadata()
Gets the metadata to install.
|
RequestTrace |
getTrace()
Gets the trace information that describes the higher level request/operation in which this request is issued.
|
InstallRequest |
setArtifacts(java.util.Collection<Artifact> artifacts)
Sets the artifacts to install.
|
InstallRequest |
setMetadata(java.util.Collection<Metadata> metadata)
Sets the metadata to install.
|
InstallRequest |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued.
|
java.lang.String |
toString() |
private java.util.Collection<Artifact> artifacts
private java.util.Collection<Metadata> metadata
private RequestTrace trace
public java.util.Collection<Artifact> getArtifacts()
null
.public InstallRequest setArtifacts(java.util.Collection<Artifact> artifacts)
artifacts
- The artifacts to install, may be null
.null
.public InstallRequest addArtifact(Artifact artifact)
artifact
- The artifact to add, may be null
.null
.public java.util.Collection<Metadata> getMetadata()
null
.public InstallRequest setMetadata(java.util.Collection<Metadata> metadata)
metadata
- The metadata to install.null
.public InstallRequest addMetadata(Metadata metadata)
metadata
- The metadata to add, may be null
.null
.public RequestTrace getTrace()
null
if none.public InstallRequest setTrace(RequestTrace trace)
trace
- The trace information about the higher level operation, may be null
.null
.public java.lang.String toString()
toString
in class java.lang.Object