Interface ListSegmentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSegmentsResponse.Builder,,ListSegmentsResponse> EvidentlyResponse.Builder,SdkBuilder<ListSegmentsResponse.Builder,,ListSegmentsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSegmentsResponse
public static interface ListSegmentsResponse.Builder
extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<ListSegmentsResponse.Builder,ListSegmentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use in a subsequentListSegmentsoperation 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
copyMethods inherited from interface software.amazon.awssdk.services.evidently.model.EvidentlyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
The token to use in a subsequent
ListSegmentsoperation to return the next set of results.- Parameters:
nextToken- The token to use in a subsequentListSegmentsoperation 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.Builderavoiding the need to create one manually viaSegment.builder().When the
Consumercompletes,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:
-