Interface ArtifactSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ArtifactSource.Builder,
,ArtifactSource> SdkBuilder<ArtifactSource.Builder,
,ArtifactSource> SdkPojo
- Enclosing class:
ArtifactSource
public static interface ArtifactSource.Builder
extends SdkPojo, CopyableBuilder<ArtifactSource.Builder,ArtifactSource>
-
Method Summary
Modifier and TypeMethodDescriptionsourceTypes
(Collection<ArtifactSourceType> sourceTypes) A list of source types.sourceTypes
(Consumer<ArtifactSourceType.Builder>... sourceTypes) A list of source types.sourceTypes
(ArtifactSourceType... sourceTypes) A list of source types.The URI of the source.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, sdkFields
-
Method Details
-
sourceUri
The URI of the source.
- Parameters:
sourceUri
- The URI of the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceTypes
A list of source types.
- Parameters:
sourceTypes
- A list of source types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceTypes
A list of source types.
- Parameters:
sourceTypes
- A list of source types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceTypes
A list of source types.
This is a convenience method that creates an instance of theArtifactSourceType.Builder
avoiding the need to create one manually viaArtifactSourceType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceTypes(List<ArtifactSourceType>)
.- Parameters:
sourceTypes
- a consumer that will call methods onArtifactSourceType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-