public static interface TagSpecification.Builder extends software.amazon.awssdk.utils.builder.CopyableBuilder<TagSpecification.Builder,TagSpecification>
| Modifier and Type | Method and Description |
|---|---|
TagSpecification.Builder |
resourceType(ResourceType resourceType)
The type of resource to tag.
|
TagSpecification.Builder |
resourceType(String resourceType)
The type of resource to tag.
|
TagSpecification.Builder |
tags(Collection<Tag> tags)
The tags to apply to the resource.
|
TagSpecification.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
|
TagSpecification.Builder |
tags(Tag... tags)
The tags to apply to the resource.
|
TagSpecification.Builder resourceType(String resourceType)
The type of resource to tag. Currently, the resource types that support tagging on creation are
instance and volume.
resourceType - The type of resource to tag. Currently, the resource types that support tagging on creation are
instance and volume.ResourceType,
ResourceTypeTagSpecification.Builder resourceType(ResourceType resourceType)
The type of resource to tag. Currently, the resource types that support tagging on creation are
instance and volume.
resourceType - The type of resource to tag. Currently, the resource types that support tagging on creation are
instance and volume.ResourceType,
ResourceTypeTagSpecification.Builder tags(Collection<Tag> tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.TagSpecification.Builder tags(Tag... tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.TagSpecification.Builder tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) Copyright © 2018. All rights reserved.