Interface ListSegmentsResponse.Builder

  • Method Details

    • nextToken

      ListSegmentsResponse.Builder nextToken(String nextToken)

      The token to use in a subsequent ListSegments operation to return the next set of results.

      Parameters:
      nextToken - The token to use in a subsequent ListSegments operation to return the next set of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • segments

      An array of structures that contain information about the segments in this Region.

      Parameters:
      segments - An array of structures that contain information about the segments in this Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • segments

      ListSegmentsResponse.Builder segments(Segment... segments)

      An array of structures that contain information about the segments in this Region.

      Parameters:
      segments - An array of structures that contain information about the segments in this Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • segments

      An array of structures that contain information about the segments in this Region.

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

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

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