Interface Artifact.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Artifact.Builder,,Artifact> SdkBuilder<Artifact.Builder,,Artifact> SdkPojo
- Enclosing class:
Artifact
@Mutable
@NotThreadSafe
public static interface Artifact.Builder
extends SdkPojo, CopyableBuilder<Artifact.Builder,Artifact>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Artifact.Builderlocation(Consumer<ArtifactLocation.Builder> location) The location of an artifact.location(ArtifactLocation location) The location of an artifact.The artifact's name.The artifact's revision ID.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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
The location of an artifact.
This is a convenience method that creates an instance of theArtifactLocation.Builderavoiding the need to create one manually viaArtifactLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(ArtifactLocation).- Parameters:
location- a consumer that will call methods onArtifactLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-