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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-