public static interface Artifact.Builder extends CopyableBuilder<Artifact.Builder,Artifact>
Modifier and Type | Method and Description |
---|---|
Artifact.Builder |
location(ArtifactLocation location)
The location of an artifact.
|
default Artifact.Builder |
location(Consumer<ArtifactLocation.Builder> location)
The location of an artifact.
|
Artifact.Builder |
name(String name)
The artifact's name.
|
Artifact.Builder |
revision(String revision)
The artifact's revision ID.
|
copy
apply, build
Artifact.Builder name(String name)
The artifact's name.
name
- The artifact's name.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).
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).Artifact.Builder location(ArtifactLocation location)
The location of an artifact.
location
- The location of an artifact.default Artifact.Builder location(Consumer<ArtifactLocation.Builder> location)
The location of an artifact.
This is a convenience that creates an instance of theArtifactLocation.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)
.location
- a consumer that will call methods on ArtifactLocation.Builder
location(ArtifactLocation)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.