Interface Tag.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Tag.Builder,Tag>,SdkBuilder<Tag.Builder,Tag>,SdkPojo
- Enclosing class:
- Tag
public static interface Tag.Builder extends SdkPojo, CopyableBuilder<Tag.Builder,Tag>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tag.Builderkey(String key)The first part of a key:value pair that forms a tag associated with a given resource.Tag.Buildervalue(String value)The second part of a key:value pair that forms a tag associated with a given resource.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
key
Tag.Builder key(String key)
The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag
Department:Sales, the key is 'Department'.- Parameters:
key- The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tagDepartment:Sales, the key is 'Department'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
Tag.Builder value(String value)
The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag
Department:Sales, the value is 'Sales'.Note that you can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string.
- Parameters:
value- The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tagDepartment:Sales, the value is 'Sales'.Note that you can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-