Interface TagSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TagSpecification.Builder,,TagSpecification> SdkBuilder<TagSpecification.Builder,,TagSpecification> SdkPojo
- Enclosing class:
- TagSpecification
@Mutable
@NotThreadSafe
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.tags(Collection<Tag> tags) Sets the value of the Tags property for this object.tags(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceType
The type of resource to tag on creation.
Valid Values:
-
auto-backup- The DB instance's automated backup. -
cluster-auto-backup- The DB cluster's automated backup.
- Parameters:
resourceType- The type of resource to tag on creation.Valid Values:
-
auto-backup- The DB instance's automated backup. -
cluster-auto-backup- The DB cluster's automated backup.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object. 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 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:
-