Interface AddTagsRequest.Builder

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

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

    • resourceId

      AddTagsRequest.Builder resourceId(String resourceId)

      The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.

      Parameters:
      resourceId - The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

      Parameters:
      tags - A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      AddTagsRequest.Builder tags(Tag... tags)

      A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

      Parameters:
      tags - A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

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