Interface LaunchTemplateTagSpecificationRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateTagSpecificationRequest.Builder,,LaunchTemplateTagSpecificationRequest> SdkBuilder<LaunchTemplateTagSpecificationRequest.Builder,,LaunchTemplateTagSpecificationRequest> SdkPojo
- Enclosing class:
- LaunchTemplateTagSpecificationRequest
-
Method Summary
Modifier and TypeMethodDescriptionresourceType(String resourceType) The type of resource to tag.resourceType(ResourceType resourceType) The type of resource to tag.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
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.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only:
instance|volume|network-interface|spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.To tag a resource after it has been created, see CreateTags.
- Parameters:
resourceType- The type of resource to tag.Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only:
instance|volume|network-interface|spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.To tag a resource after it has been created, see CreateTags.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only:
instance|volume|network-interface|spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.To tag a resource after it has been created, see CreateTags.
- Parameters:
resourceType- The type of resource to tag.Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only:
instance|volume|network-interface|spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.To tag a resource after it has been created, see CreateTags.
- 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.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:
-