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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArtifactSource.Builder
sourceTypes(Collection<ArtifactSourceType> sourceTypes)
A list of source types.ArtifactSource.Builder
sourceTypes(Consumer<ArtifactSourceType.Builder>... sourceTypes)
A list of source types.ArtifactSource.Builder
sourceTypes(ArtifactSourceType... sourceTypes)
A list of source types.ArtifactSource.Builder
sourceUri(String sourceUri)
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sourceUri
ArtifactSource.Builder sourceUri(String 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
ArtifactSource.Builder sourceTypes(Collection<ArtifactSourceType> 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
ArtifactSource.Builder sourceTypes(ArtifactSourceType... 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
ArtifactSource.Builder sourceTypes(Consumer<ArtifactSourceType.Builder>... 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 to#sourceTypes(List
.) - 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:
#sourceTypes(java.util.Collection
)
-
-