public static interface Tag.Builder extends SdkPojo, CopyableBuilder<Tag.Builder,Tag>
| Modifier and Type | Method and Description |
|---|---|
Tag.Builder |
key(String key)
The key name that can be used to look up or retrieve the associated value.
|
Tag.Builder |
value(String value)
The value associated with this tag.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTag.Builder key(String key)
The key name that can be used to look up or retrieve the associated value. For example,
Department or Cost Center are common choices.
key - The key name that can be used to look up or retrieve the associated value. For example,
Department or Cost Center are common choices.Tag.Builder value(String value)
The value associated with this tag. For example, tags with a key name of Department could have
values such as Human Resources, Accounting, and Support. Tags with a
key name of Cost Center might have values that consist of the number associated with the
different cost centers in your company. Typically, many resources have tags with the same key name but with
different values.
Amazon Web Services always interprets the tag Value as a single string. If you need to store an
array, you can store comma-separated values in the string. However, you must interpret the value in your
code.
value - The value associated with this tag. For example, tags with a key name of Department could
have values such as Human Resources, Accounting, and Support.
Tags with a key name of Cost Center might have values that consist of the number
associated with the different cost centers in your company. Typically, many resources have tags with
the same key name but with different values.
Amazon Web Services always interprets the tag Value as a single string. If you need to
store an array, you can store comma-separated values in the string. However, you must interpret the
value in your code.
Copyright © 2023. All rights reserved.