Interface ServerlessTrack.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerlessTrack.Builder,
,ServerlessTrack> SdkBuilder<ServerlessTrack.Builder,
,ServerlessTrack> SdkPojo
- Enclosing class:
ServerlessTrack
@Mutable
@NotThreadSafe
public static interface ServerlessTrack.Builder
extends SdkPojo, CopyableBuilder<ServerlessTrack.Builder,ServerlessTrack>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the track.updateTargets
(Collection<UpdateTarget> updateTargets) An array ofUpdateTarget
objects to update with the track.updateTargets
(Consumer<UpdateTarget.Builder>... updateTargets) An array ofUpdateTarget
objects to update with the track.updateTargets
(UpdateTarget... updateTargets) An array ofUpdateTarget
objects to update with the track.workgroupVersion
(String workgroupVersion) The workgroup version number for the workgroup release.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 Details
-
trackName
The name of the track. Valid values are
current
andtrailing
.- Parameters:
trackName
- The name of the track. Valid values arecurrent
andtrailing
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTargets
An array of
UpdateTarget
objects to update with the track.- Parameters:
updateTargets
- An array ofUpdateTarget
objects to update with the track.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTargets
An array of
UpdateTarget
objects to update with the track.- Parameters:
updateTargets
- An array ofUpdateTarget
objects to update with the track.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTargets
An array of
This is a convenience method that creates an instance of theUpdateTarget
objects to update with the track.UpdateTarget.Builder
avoiding the need to create one manually viaUpdateTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupdateTargets(List<UpdateTarget>)
.- Parameters:
updateTargets
- a consumer that will call methods onUpdateTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workgroupVersion
The workgroup version number for the workgroup release.
- Parameters:
workgroupVersion
- The workgroup version number for the workgroup release.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-