Interface CreateListRequest.Builder

    • Method Detail

      • name

        CreateListRequest.Builder name​(String name)

        The name of the list.

        Parameters:
        name - The name of the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elements

        CreateListRequest.Builder elements​(Collection<String> elements)

        The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.

        Parameters:
        elements - The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elements

        CreateListRequest.Builder elements​(String... elements)

        The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.

        Parameters:
        elements - The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variableType

        CreateListRequest.Builder variableType​(String variableType)

        The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.

        Parameters:
        variableType - The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateListRequest.Builder description​(String description)

        The description of the list.

        Parameters:
        description - The description of the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateListRequest.Builder tags​(Collection<Tag> tags)

        A collection of the key and value pairs.

        Parameters:
        tags - A collection of the key and value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateListRequest.Builder tags​(Tag... tags)

        A collection of the key and value pairs.

        Parameters:
        tags - A collection of the key and value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateListRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        A collection of the key and value pairs.

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

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

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