Interface LaunchTemplateTagSpecificationRequest.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>
,SdkBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>
,SdkPojo
- Enclosing class:
- LaunchTemplateTagSpecificationRequest
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.Builder
resourceType(String resourceType)
The type of resource to tag.LaunchTemplateTagSpecificationRequest.Builder
resourceType(ResourceType resourceType)
The type of resource to tag.LaunchTemplateTagSpecificationRequest.Builder
tags(Collection<Tag> tags)
The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Builder
tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Builder
tags(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, 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
|elastic-gpu
|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 an Elastic GPU.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
|elastic-gpu
|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 an Elastic GPU.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
|elastic-gpu
|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 an Elastic GPU.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
|elastic-gpu
|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 an Elastic GPU.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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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
)
-
-