Interface PutEventsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CloudWatchEventsResponse.Builder, CopyableBuilder<PutEventsResponse.Builder,PutEventsResponse>, SdkBuilder<PutEventsResponse.Builder,PutEventsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
PutEventsResponse

public static interface PutEventsResponse.Builder extends CloudWatchEventsResponse.Builder, SdkPojo, CopyableBuilder<PutEventsResponse.Builder,PutEventsResponse>
  • Method Details

    • 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

      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.

      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      This is a convenience method that creates an instance of the PutEventsResultEntry.Builder avoiding the need to create one manually via PutEventsResultEntry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entries(List<PutEventsResultEntry>).

      Parameters:
      entries - a consumer that will call methods on PutEventsResultEntry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: