Class Artifact

    • Constructor Detail

      • Artifact

        public Artifact()
    • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object