Interface GetEventStreamResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetEventStreamResponse.Builder,
,GetEventStreamResponse> PinpointResponse.Builder
,SdkBuilder<GetEventStreamResponse.Builder,
,GetEventStreamResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetEventStreamResponse
@Mutable
@NotThreadSafe
public static interface GetEventStreamResponse.Builder
extends PinpointResponse.Builder, SdkPojo, CopyableBuilder<GetEventStreamResponse.Builder,GetEventStreamResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetEventStreamResponse.Builder
eventStream
(Consumer<EventStream.Builder> eventStream) Sets the value of the EventStream property for this object.eventStream
(EventStream eventStream) Sets the value of the EventStream property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pinpoint.model.PinpointResponse.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
-
eventStream
Sets the value of the EventStream property for this object.- Parameters:
eventStream
- The new value for the EventStream property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventStream
Sets the value of the EventStream property for this object. This is a convenience method that creates an instance of theEventStream.Builder
avoiding the need to create one manually viaEventStream.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventStream(EventStream)
.- Parameters:
eventStream
- a consumer that will call methods onEventStream.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-