public final class DeployResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<Artifact> |
artifacts |
private java.util.Collection<Metadata> |
metadata |
private DeployRequest |
request |
| Constructor and Description |
|---|
DeployResult(DeployRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
DeployResult |
addArtifact(Artifact artifact)
Adds the specified artifacts to the result.
|
DeployResult |
addMetadata(Metadata metadata)
Adds the specified metadata to this result.
|
java.util.Collection<Artifact> |
getArtifacts()
Gets the artifacts that got deployed.
|
java.util.Collection<Metadata> |
getMetadata()
Gets the metadata that got deployed.
|
DeployRequest |
getRequest()
Gets the deploy request that was made.
|
DeployResult |
setArtifacts(java.util.Collection<Artifact> artifacts)
Sets the artifacts that got deployed.
|
DeployResult |
setMetadata(java.util.Collection<Metadata> metadata)
Sets the metadata that got deployed.
|
java.lang.String |
toString() |
private final DeployRequest request
private java.util.Collection<Artifact> artifacts
private java.util.Collection<Metadata> metadata
public DeployResult(DeployRequest request)
request - The deployment request, must not be null.public DeployRequest getRequest()
null.public java.util.Collection<Artifact> getArtifacts()
null.public DeployResult setArtifacts(java.util.Collection<Artifact> artifacts)
artifacts - The deployed artifacts, may be null.null.public DeployResult addArtifact(Artifact artifact)
artifact - The deployed artifact to add, may be null.null.public java.util.Collection<Metadata> getMetadata()
null.public DeployResult setMetadata(java.util.Collection<Metadata> metadata)
metadata - The deployed metadata, may be null.null.public DeployResult addMetadata(Metadata metadata)
metadata - The deployed metadata to add, may be null.null.public java.lang.String toString()
toString in class java.lang.Object