Interface TagResourceRequest.Builder

    • Method Detail

      • resourceArn

        TagResourceRequest.Builder resourceArn​(String resourceArn)

        The Amazon Resource Number (ARN) of a resource to which you want to apply tags. For example, arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE .

        Parameters:
        resourceArn - The Amazon Resource Number (ARN) of a resource to which you want to apply tags. For example, arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.

        • The key cannot be empty.

        • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • Leading and trailing white spaces are trimmed from both the key and value.

        • A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.

        Parameters:
        tags - A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.

        • The key cannot be empty.

        • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • Leading and trailing white spaces are trimmed from both the key and value.

        • A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        TagResourceRequest.Builder tags​(Tag... tags)

        A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.

        • The key cannot be empty.

        • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • Leading and trailing white spaces are trimmed from both the key and value.

        • A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.

        Parameters:
        tags - A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.

        • The key cannot be empty.

        • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • Leading and trailing white spaces are trimmed from both the key and value.

        • A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        A map that contains tag keys and tag values to attach to AWS OpsWorks-CM servers or backups.

        • The key cannot be empty.

        • The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /

        • Leading and trailing white spaces are trimmed from both the key and value.

        • A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup.

        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)