Interface AddKeys.Builder

    • Method Detail

      • entries

        AddKeys.Builder entries​(Collection<AddKeyEntry> entries)

        An array of objects, where each object contains the information about one key to add to the log event.

        Parameters:
        entries - An array of objects, where each object contains the information about one key to add to the log event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entries

        AddKeys.Builder entries​(AddKeyEntry... entries)

        An array of objects, where each object contains the information about one key to add to the log event.

        Parameters:
        entries - An array of objects, where each object contains the information about one key to add to the log event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entries

        AddKeys.Builder entries​(Consumer<AddKeyEntry.Builder>... entries)

        An array of objects, where each object contains the information about one key to add to the log event.

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

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

        Parameters:
        entries - a consumer that will call methods on AddKeyEntry.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #entries(java.util.Collection)