public class Artifact
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about an artifact that will be worked upon by actions in the pipeline.
Modifier and Type | Field and Description |
---|---|
private ArtifactLocation |
location
The location of an artifact.
|
private java.lang.String |
name
The artifact's name.
|
private java.lang.String |
revision
The artifact's revision ID.
|
Constructor and Description |
---|
Artifact() |
Modifier and Type | Method and Description |
---|---|
Artifact |
clone() |
boolean |
equals(java.lang.Object obj) |
ArtifactLocation |
getLocation()
The location of an artifact.
|
java.lang.String |
getName()
The artifact's name.
|
java.lang.String |
getRevision()
The artifact's revision ID.
|
int |
hashCode() |
void |
setLocation(ArtifactLocation location)
The location of an artifact.
|
void |
setName(java.lang.String name)
The artifact's name.
|
void |
setRevision(java.lang.String revision)
The artifact's revision ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Artifact |
withLocation(ArtifactLocation location)
The location of an artifact.
|
Artifact |
withName(java.lang.String name)
The artifact's name.
|
Artifact |
withRevision(java.lang.String revision)
The artifact's revision ID.
|
private java.lang.String name
The artifact's name.
private java.lang.String revision
The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
private ArtifactLocation location
The location of an artifact.
public void setName(java.lang.String name)
The artifact's name.
name
- The artifact's name.public java.lang.String getName()
The artifact's name.
public Artifact withName(java.lang.String name)
The artifact's name.
name
- The artifact's name.public void setRevision(java.lang.String revision)
The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
revision
- The artifact's revision ID. Depending on the type of object, this
could be a commit ID (GitHub) or a revision ID (Amazon S3).public java.lang.String getRevision()
The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
public Artifact withRevision(java.lang.String revision)
The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
revision
- The artifact's revision ID. Depending on the type of object, this
could be a commit ID (GitHub) or a revision ID (Amazon S3).public void setLocation(ArtifactLocation location)
The location of an artifact.
location
- The location of an artifact.public ArtifactLocation getLocation()
The location of an artifact.
public Artifact withLocation(ArtifactLocation location)
The location of an artifact.
location
- The location of an artifact.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Artifact clone()
clone
in class java.lang.Object