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:
  • Constructor Details

    • Artifact

      public Artifact()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Artifact clone()
      Overrides:
      clone in class Object