public class Artifact extends Object implements Serializable, Cloneable
Represents information about an artifact that will be worked upon by actions in the pipeline.
| Constructor and Description | 
|---|
| Artifact() | 
| Modifier and Type | Method and Description | 
|---|---|
| Artifact | clone() | 
| boolean | equals(Object obj) | 
| ArtifactLocation | getLocation()
 The location of an artifact. | 
| String | getName()
 The artifact's name. | 
| String | getRevision()
 The artifact's revision ID. | 
| int | hashCode() | 
| void | setLocation(ArtifactLocation location)
 The location of an artifact. | 
| void | setName(String name)
 The artifact's name. | 
| void | setRevision(String revision)
 The artifact's revision ID. | 
| 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(String name)
 The artifact's name. | 
| Artifact | withRevision(String revision)
 The artifact's revision ID. | 
public void setName(String name)
The artifact's name.
name - The artifact's name.public String getName()
The artifact's name.
public Artifact withName(String name)
The artifact's name.
name - The artifact's name.public void setRevision(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 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(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 String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.