Class Artifact
- java.lang.Object
-
- com.amazonaws.services.codepipeline.model.Artifact
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Artifact extends Object implements Serializable, Cloneable
Represents information about an artifact that will be worked upon by actions in the pipeline.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Artifact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifactclone()booleanequals(Object obj)ArtifactLocationgetLocation()The location of an artifact.StringgetName()The artifact's name.StringgetRevision()The artifact's revision ID.inthashCode()voidsetLocation(ArtifactLocation location)The location of an artifact.voidsetName(String name)The artifact's name.voidsetRevision(String revision)The artifact's revision ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.ArtifactwithLocation(ArtifactLocation location)The location of an artifact.ArtifactwithName(String name)The artifact's name.ArtifactwithRevision(String revision)The artifact's revision ID.
-
-
-
Method Detail
-
setName
public void setName(String name)
The artifact's name.
- Parameters:
name- The artifact's name.
-
getName
public String getName()
The artifact's name.
- Returns:
- The artifact's name.
-
withName
public Artifact withName(String name)
The artifact's name.
- Parameters:
name- The artifact's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRevision
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).
- Parameters:
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).
-
getRevision
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).
- Returns:
- The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
-
withRevision
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLocation
public void setLocation(ArtifactLocation location)
The location of an artifact.
- Parameters:
location- The location of an artifact.
-
getLocation
public ArtifactLocation getLocation()
The location of an artifact.
- Returns:
- The location of an artifact.
-
withLocation
public Artifact withLocation(ArtifactLocation location)
The location of an artifact.
- Parameters:
location- The location of an artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-