Interface GetModelsResponse.Builder

    • Method Detail

      • position

        GetModelsResponse.Builder position​(String position)
        Sets the value of the Position property for this object.
        Parameters:
        position - The new value for the Position property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        GetModelsResponse.Builder items​(Collection<Model> items)

        The current page of elements from this collection.

        Parameters:
        items - The current page of elements from this collection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        GetModelsResponse.Builder items​(Model... items)

        The current page of elements from this collection.

        Parameters:
        items - The current page of elements from this collection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        GetModelsResponse.Builder items​(Consumer<Model.Builder>... items)

        The current page of elements from this collection.

        This is a convenience method that creates an instance of the Model.Builder avoiding the need to create one manually via Model.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 Model.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #items(java.util.Collection)