Interface Origins.Builder

    • Method Detail

      • quantity

        Origins.Builder quantity​(Integer quantity)

        The number of origins for this distribution.

        Parameters:
        quantity - The number of origins for this distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        Origins.Builder items​(Collection<Origin> items)

        A list of origins.

        Parameters:
        items - A list of origins.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        Origins.Builder items​(Origin... items)

        A list of origins.

        Parameters:
        items - A list of origins.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        Origins.Builder items​(Consumer<Origin.Builder>... items)

        A list of origins.

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

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

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