Interface AddTagsRequest.Builder

    • Method Detail

      • tags

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

        The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

        Parameters:
        tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        AddTagsRequest.Builder tags​(Tag... tags)

        The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

        Parameters:
        tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

        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)
      • resourceId

        AddTagsRequest.Builder resourceId​(String resourceId)

        The ID of the ML object to tag. For example, exampleModelId.

        Parameters:
        resourceId - The ID of the ML object to tag. For example, exampleModelId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.