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 ofUpdateTargetobjects to update with the track.updateTargets(Consumer<UpdateTarget.Builder>... updateTargets) An array ofUpdateTargetobjects to update with the track.updateTargets(UpdateTarget... updateTargets) An array ofUpdateTargetobjects 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
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
-
trackName
The name of the track. Valid values are
currentandtrailing.- Parameters:
trackName- The name of the track. Valid values arecurrentandtrailing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTargets
An array of
UpdateTargetobjects to update with the track.- Parameters:
updateTargets- An array ofUpdateTargetobjects to update with the track.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTargets
An array of
UpdateTargetobjects to update with the track.- Parameters:
updateTargets- An array ofUpdateTargetobjects 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 theUpdateTargetobjects to update with the track.UpdateTarget.Builderavoiding the need to create one manually viaUpdateTarget.builder().When the
Consumercompletes,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.
-