Class RecordsEvent.BuilderImpl

java.lang.Object
software.amazon.awssdk.services.s3.model.RecordsEvent.BuilderImpl
All Implemented Interfaces:
SdkPojo, RecordsEvent.Builder, Buildable, CopyableBuilder<RecordsEvent.Builder,RecordsEvent>, SdkBuilder<RecordsEvent.Builder,RecordsEvent>
Enclosing class:
RecordsEvent

protected static class RecordsEvent.BuilderImpl extends Object implements RecordsEvent.Builder
  • Constructor Details

    • BuilderImpl

      protected BuilderImpl()
    • BuilderImpl

      protected BuilderImpl(RecordsEvent model)
  • Method Details

    • getPayload

      public final ByteBuffer getPayload()
    • setPayload

      public final void setPayload(ByteBuffer payload)
    • payload

      public final RecordsEvent.Builder payload(SdkBytes payload)
      Description copied from interface: RecordsEvent.Builder

      The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a ByteStream out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.

      Specified by:
      payload in interface RecordsEvent.Builder
      Parameters:
      payload - The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a ByteStream out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • build

      public RecordsEvent build()
      Specified by:
      build in interface Buildable
      Specified by:
      build in interface SdkBuilder<RecordsEvent.Builder,RecordsEvent>
    • sdkFields

      public List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo