Interface Artifact.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Artifact.Builder,Artifact>, SdkBuilder<Artifact.Builder,Artifact>, SdkPojo
Enclosing class:
Artifact

public static interface Artifact.Builder extends SdkPojo, CopyableBuilder<Artifact.Builder,Artifact>
  • Method Details

    • 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.
    • revision

      Artifact.Builder revision(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.
    • location

      Artifact.Builder location(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.
    • location

      default Artifact.Builder location(Consumer<ArtifactLocation.Builder> location)

      The location of an artifact.

      This is a convenience method that creates an instance of the ArtifactLocation.Builder avoiding the need to create one manually via ArtifactLocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to location(ArtifactLocation).

      Parameters:
      location - a consumer that will call methods on ArtifactLocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: