@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Artifact extends Object implements Serializable, Cloneable, StructuredPojo
Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.