Interface PutEventsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutEventsResponse.Builder,PutEventsResponse>,EventBridgeResponse.Builder,SdkBuilder<PutEventsResponse.Builder,PutEventsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- PutEventsResponse
public static interface PutEventsResponse.Builder extends EventBridgeResponse.Builder, SdkPojo, CopyableBuilder<PutEventsResponse.Builder,PutEventsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutEventsResponse.Builderentries(Collection<PutEventsResultEntry> entries)The successfully and unsuccessfully ingested events results.PutEventsResponse.Builderentries(Consumer<PutEventsResultEntry.Builder>... entries)The successfully and unsuccessfully ingested events results.PutEventsResponse.Builderentries(PutEventsResultEntry... entries)The successfully and unsuccessfully ingested events results.PutEventsResponse.BuilderfailedEntryCount(Integer failedEntryCount)The number of failed entries.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeResponse.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 Detail
-
failedEntryCount
PutEventsResponse.Builder failedEntryCount(Integer failedEntryCount)
The number of failed entries.
- Parameters:
failedEntryCount- The number of failed entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
PutEventsResponse.Builder entries(Collection<PutEventsResultEntry> entries)
The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
For each record, the index of the response element is the same as the index in the request array.
- Parameters:
entries- The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.For each record, the index of the response element is the same as the index in the request array.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
PutEventsResponse.Builder entries(PutEventsResultEntry... entries)
The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
For each record, the index of the response element is the same as the index in the request array.
- Parameters:
entries- The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.For each record, the index of the response element is the same as the index in the request array.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
PutEventsResponse.Builder entries(Consumer<PutEventsResultEntry.Builder>... entries)
The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
For each record, the index of the response element is the same as the index in the request array.
This is a convenience method that creates an instance of thePutEventsResultEntry.Builderavoiding the need to create one manually viaPutEventsResultEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#entries(List.) - Parameters:
entries- a consumer that will call methods onPutEventsResultEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#entries(java.util.Collection)
-
-