Interface LaunchTemplateTagSpecificationRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>,SdkBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>,SdkPojo
- Enclosing class:
- LaunchTemplateTagSpecificationRequest
@Mutable @NotThreadSafe public static interface LaunchTemplateTagSpecificationRequest.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LaunchTemplateTagSpecificationRequest.BuilderresourceType(String resourceType)The type of resource to tag.LaunchTemplateTagSpecificationRequest.BuilderresourceType(ResourceType resourceType)The type of resource to tag.LaunchTemplateTagSpecificationRequest.Buildertags(Collection<Tag> tags)The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Buildertags(Consumer<Tag.Builder>... tags)The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Buildertags(Tag... tags)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
resourceType
LaunchTemplateTagSpecificationRequest.Builder resourceType(String 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,ResourceType
-
resourceType
LaunchTemplateTagSpecificationRequest.Builder resourceType(ResourceType 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,ResourceType
-
tags
LaunchTemplateTagSpecificationRequest.Builder tags(Collection<Tag> 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
LaunchTemplateTagSpecificationRequest.Builder tags(Tag... 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
LaunchTemplateTagSpecificationRequest.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List.) - 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:
#tags(java.util.Collection)
-
-