Interface LaunchTemplate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplate.Builder,
,LaunchTemplate> SdkBuilder<LaunchTemplate.Builder,
,LaunchTemplate> SdkPojo
- Enclosing class:
LaunchTemplate
public static interface LaunchTemplate.Builder
extends SdkPojo, CopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>
-
Method Summary
Modifier and TypeMethodDescriptionThe principal that created the launch template.createTime
(Instant createTime) The time launch template was created.defaultVersionNumber
(Long defaultVersionNumber) The version number of the default version of the launch template.latestVersionNumber
(Long latestVersionNumber) The version number of the latest version of the launch template.launchTemplateId
(String launchTemplateId) The ID of the launch template.launchTemplateName
(String launchTemplateName) The name of the launch template.tags
(Collection<Tag> tags) The tags for the launch template.tags
(Consumer<Tag.Builder>... tags) The tags for the launch template.The tags for the launch template.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 Details
-
launchTemplateId
The ID of the launch template.
- Parameters:
launchTemplateId
- The ID of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateName
The name of the launch template.
- Parameters:
launchTemplateName
- The name of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The time launch template was created.
- Parameters:
createTime
- The time launch template was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The principal that created the launch template.
- Parameters:
createdBy
- The principal that created the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVersionNumber
The version number of the default version of the launch template.
- Parameters:
defaultVersionNumber
- The version number of the default version of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersionNumber
The version number of the latest version of the launch template.
- Parameters:
latestVersionNumber
- The version number of the latest version of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the launch template.
- Parameters:
tags
- The tags for the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the launch template.
- Parameters:
tags
- The tags for the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the launch template.
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 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:
-