Interface ResourceTag.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceTag.Builder,ResourceTag>,SdkBuilder<ResourceTag.Builder,ResourceTag>,SdkPojo
- Enclosing class:
- ResourceTag
public static interface ResourceTag.Builder extends SdkPojo, CopyableBuilder<ResourceTag.Builder,ResourceTag>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceTag.BuilderresourceId(String resourceId)Specifies the ARN of the resource.ResourceTag.BuildertagsList(Collection<Tag> tagsList)A list of tags.ResourceTag.BuildertagsList(Consumer<Tag.Builder>... tagsList)A list of tags.ResourceTag.BuildertagsList(Tag... tagsList)A list of tags.-
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
-
resourceId
ResourceTag.Builder resourceId(String resourceId)
Specifies the ARN of the resource.
- Parameters:
resourceId- Specifies the ARN of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagsList
ResourceTag.Builder tagsList(Collection<Tag> tagsList)
A list of tags.
- Parameters:
tagsList- A list of tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagsList
ResourceTag.Builder tagsList(Tag... tagsList)
A list of tags.
- Parameters:
tagsList- A list of tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagsList
ResourceTag.Builder tagsList(Consumer<Tag.Builder>... tagsList)
A list of tags.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagsList(List.) - Parameters:
tagsList- 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:
#tagsList(java.util.Collection)
-
-