Interface AddTagsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>, MachineLearningRequest.Builder, SdkBuilder<AddTagsRequest.Builder,AddTagsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
AddTagsRequest

public static interface AddTagsRequest.Builder extends MachineLearningRequest.Builder, SdkPojo, CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>
  • Method Details

    • 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

      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<Tag>).

      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:
    • 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.
    • resourceType

      AddTagsRequest.Builder resourceType(String resourceType)

      The type of the ML object to tag.

      Parameters:
      resourceType - The type of the ML object to tag.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      AddTagsRequest.Builder resourceType(TaggableResourceType resourceType)

      The type of the ML object to tag.

      Parameters:
      resourceType - The type of the ML object to tag.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      AddTagsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.