Interface ServerlessTrack.Builder

  • Method Details

    • trackName

      ServerlessTrack.Builder trackName(String trackName)

      The name of the track. Valid values are current and trailing.

      Parameters:
      trackName - The name of the track. Valid values are current and trailing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateTargets

      ServerlessTrack.Builder updateTargets(Collection<UpdateTarget> updateTargets)

      An array of UpdateTarget objects to update with the track.

      Parameters:
      updateTargets - An array of UpdateTarget objects to update with the track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateTargets

      ServerlessTrack.Builder updateTargets(UpdateTarget... updateTargets)

      An array of UpdateTarget objects to update with the track.

      Parameters:
      updateTargets - An array of UpdateTarget objects to update with the track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateTargets

      ServerlessTrack.Builder updateTargets(Consumer<UpdateTarget.Builder>... updateTargets)

      An array of UpdateTarget objects to update with the track.

      This is a convenience method that creates an instance of the UpdateTarget.Builder avoiding the need to create one manually via UpdateTarget.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to updateTargets(List<UpdateTarget>).

      Parameters:
      updateTargets - a consumer that will call methods on UpdateTarget.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • workgroupVersion

      ServerlessTrack.Builder workgroupVersion(String 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.