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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Artifact.Builderlocation(Consumer<ArtifactLocation.Builder> location)The location of an artifact.Artifact.Builderlocation(ArtifactLocation location)The location of an artifact.Artifact.Buildername(String name)The artifact's name.Artifact.Builderrevision(String revision)The artifact's revision ID.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Artifact.Builder name(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.
-
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 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:
location(ArtifactLocation)
-
-