Interface PutEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutEventsResponse.Builder,,PutEventsResponse> EventBridgeV2Response.Builder,SdkBuilder<PutEventsResponse.Builder,,PutEventsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutEventsResponse
@Mutable
@NotThreadSafe
public static interface PutEventsResponse.Builder
extends EventBridgeV2Response.Builder, SdkPojo, CopyableBuilder<PutEventsResponse.Builder,PutEventsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionentries(Collection<PutEventsResultEntry> entries) Sets the value of the Entries property for this object.entries(Consumer<PutEventsResultEntry.Builder>... entries) Sets the value of the Entries property for this object.entries(PutEventsResultEntry... entries) Sets the value of the Entries property for this object.failedEntryCount(Integer failedEntryCount) The number of entries in the batch that failed to be published.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eventbridgev2.model.EventBridgeV2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
failedEntryCount
The number of entries in the batch that failed to be published.
- Parameters:
failedEntryCount- The number of entries in the batch that failed to be published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Sets the value of the Entries property for this object.- Parameters:
entries- The new value for the Entries property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Sets the value of the Entries property for this object.- Parameters:
entries- The new value for the Entries property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Sets the value of the Entries property for this object. 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 toentries(List<PutEventsResultEntry>).- 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:
-