Interface PutLogEventsResponse.Builder

  • Method Details

    • nextSequenceToken

      PutLogEventsResponse.Builder nextSequenceToken(String nextSequenceToken)

      The next sequence token.

      This field has been deprecated.

      The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream and you do not need to wait for the response of a previous PutLogEvents action to obtain the nextSequenceToken value.

      Parameters:
      nextSequenceToken - The next sequence token.

      This field has been deprecated.

      The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream and you do not need to wait for the response of a previous PutLogEvents action to obtain the nextSequenceToken value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectedLogEventsInfo

      PutLogEventsResponse.Builder rejectedLogEventsInfo(RejectedLogEventsInfo rejectedLogEventsInfo)

      The rejected events.

      Parameters:
      rejectedLogEventsInfo - The rejected events.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectedLogEventsInfo

      default PutLogEventsResponse.Builder rejectedLogEventsInfo(Consumer<RejectedLogEventsInfo.Builder> rejectedLogEventsInfo)

      The rejected events.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rejectedLogEventsInfo(RejectedLogEventsInfo).

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

      PutLogEventsResponse.Builder rejectedEntityInfo(RejectedEntityInfo rejectedEntityInfo)

      Information about why the entity is rejected when calling PutLogEvents. Only returned when the entity is rejected.

      When the entity is rejected, the events may still be accepted.

      Parameters:
      rejectedEntityInfo - Information about why the entity is rejected when calling PutLogEvents. Only returned when the entity is rejected.

      When the entity is rejected, the events may still be accepted.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectedEntityInfo

      default PutLogEventsResponse.Builder rejectedEntityInfo(Consumer<RejectedEntityInfo.Builder> rejectedEntityInfo)

      Information about why the entity is rejected when calling PutLogEvents. Only returned when the entity is rejected.

      When the entity is rejected, the events may still be accepted.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rejectedEntityInfo(RejectedEntityInfo).

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