Interface TagSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TagSpecification.Builder,
,TagSpecification> SdkBuilder<TagSpecification.Builder,
,TagSpecification> SdkPojo
- Enclosing class:
TagSpecification
public static interface TagSpecification.Builder
extends SdkPojo, CopyableBuilder<TagSpecification.Builder,TagSpecification>
-
Method Summary
Modifier and TypeMethodDescriptionresourceType
(String resourceType) The type of resource to tag on creation.resourceType
(ResourceType resourceType) The type of resource to tag on creation.tags
(Collection<Tag> tags) The tags to apply to the resource.tags
(Consumer<Tag.Builder>... tags) The tags to apply to the resource.The tags to apply to the 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 Details
-
resourceType
The type of resource to tag on creation.
- Parameters:
resourceType
- The type of resource to tag on creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource to tag on creation.
- Parameters:
resourceType
- The type of resource to tag on creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to apply to the resource.
- Parameters:
tags
- The tags to apply to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to apply to the resource.
- Parameters:
tags
- The tags to apply to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to apply to the resource.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-