Interface ItemResponse.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ItemResponse.Builder,,ItemResponse> SdkBuilder<ItemResponse.Builder,,ItemResponse> SdkPojo
- Enclosing class:
ItemResponse
@Mutable
@NotThreadSafe
public static interface ItemResponse.Builder
extends SdkPojo, CopyableBuilder<ItemResponse.Builder,ItemResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ItemResponse.BuilderendpointItemResponse(Consumer<EndpointItemResponse.Builder> endpointItemResponse) The response that was received after the endpoint data was accepted.endpointItemResponse(EndpointItemResponse endpointItemResponse) The response that was received after the endpoint data was accepted.eventsItemResponse(Map<String, EventItemResponse> eventsItemResponse) A multipart response object that contains a key and a value for each event in the request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
endpointItemResponse
The response that was received after the endpoint data was accepted.
- Parameters:
endpointItemResponse- The response that was received after the endpoint data was accepted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointItemResponse
default ItemResponse.Builder endpointItemResponse(Consumer<EndpointItemResponse.Builder> endpointItemResponse) The response that was received after the endpoint data was accepted.
This is a convenience method that creates an instance of theEndpointItemResponse.Builderavoiding the need to create one manually viaEndpointItemResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendpointItemResponse(EndpointItemResponse).- Parameters:
endpointItemResponse- a consumer that will call methods onEndpointItemResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventsItemResponse
A multipart response object that contains a key and a value for each event in the request. In each object, the event ID is the key and an EventItemResponse object is the value.
- Parameters:
eventsItemResponse- A multipart response object that contains a key and a value for each event in the request. In each object, the event ID is the key and an EventItemResponse object is the value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-