Interface StructValue.Builder

    • Method Detail

      • attributes

        StructValue.Builder attributes​(Collection<Value> attributes)

        The attributes returned in the record.

        Parameters:
        attributes - The attributes returned in the record.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        StructValue.Builder attributes​(Value... attributes)

        The attributes returned in the record.

        Parameters:
        attributes - The attributes returned in the record.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        StructValue.Builder attributes​(Consumer<Value.Builder>... attributes)

        The attributes returned in the record.

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

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

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