Interface CreateSegmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateSegmentResponse.Builder,
,CreateSegmentResponse> EvidentlyResponse.Builder
,SdkBuilder<CreateSegmentResponse.Builder,
,CreateSegmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateSegmentResponse
public static interface CreateSegmentResponse.Builder
extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<CreateSegmentResponse.Builder,CreateSegmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateSegmentResponse.Builder
segment
(Consumer<Segment.Builder> segment) A structure that contains the complete information about the segment that was just created.A structure that contains the complete information about the segment that was just created.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
segment
A structure that contains the complete information about the segment that was just created.
- Parameters:
segment
- A structure that contains the complete information about the segment that was just created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segment
A structure that contains the complete information about the segment that was just created.
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 tosegment(Segment)
.- Parameters:
segment
- 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:
-