Interface ListSegmentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSegmentsResponse.Builder,
,ListSegmentsResponse> EvidentlyResponse.Builder
,SdkBuilder<ListSegmentsResponse.Builder,
,ListSegmentsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListSegmentsResponse
@Mutable
@NotThreadSafe
public static interface ListSegmentsResponse.Builder
extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<ListSegmentsResponse.Builder,ListSegmentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use in a subsequentListSegments
operation to return the next set of results.segments
(Collection<Segment> segments) An array of structures that contain information about the segments in this Region.segments
(Consumer<Segment.Builder>... segments) An array of structures that contain information about the segments in this Region.An array of structures that contain information about the segments in this Region.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.evidently.model.EvidentlyResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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 subsequentListSegments
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
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 theSegment.Builder
avoiding the need to create one manually viaSegment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosegments(List<Segment>)
.- Parameters:
segments
- a consumer that will call methods onSegment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-