Interface LaunchTemplateVersion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateVersion.Builder,
,LaunchTemplateVersion> SdkBuilder<LaunchTemplateVersion.Builder,
,LaunchTemplateVersion> SdkPojo
- Enclosing class:
LaunchTemplateVersion
public static interface LaunchTemplateVersion.Builder
extends SdkPojo, CopyableBuilder<LaunchTemplateVersion.Builder,LaunchTemplateVersion>
-
Method Summary
Modifier and TypeMethodDescriptionThe principal that created the version.createTime
(Instant createTime) The time the version was created.defaultVersion
(Boolean defaultVersion) Indicates whether the version is the default version.default LaunchTemplateVersion.Builder
launchTemplateData
(Consumer<ResponseLaunchTemplateData.Builder> launchTemplateData) Information about the launch template.launchTemplateData
(ResponseLaunchTemplateData launchTemplateData) Information about the launch template.launchTemplateId
(String launchTemplateId) The ID of the launch template.launchTemplateName
(String launchTemplateName) The name of the launch template.versionDescription
(String versionDescription) The description for the version.versionNumber
(Long versionNumber) The version number.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.
-
versionNumber
The version number.
- Parameters:
versionNumber
- The version number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionDescription
The description for the version.
- Parameters:
versionDescription
- The description for the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The time the version was created.
- Parameters:
createTime
- The time the version was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The principal that created the version.
- Parameters:
createdBy
- The principal that created the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVersion
Indicates whether the version is the default version.
- Parameters:
defaultVersion
- Indicates whether the version is the default version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateData
Information about the launch template.
- Parameters:
launchTemplateData
- Information about the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateData
default LaunchTemplateVersion.Builder launchTemplateData(Consumer<ResponseLaunchTemplateData.Builder> launchTemplateData) Information about the launch template.
This is a convenience method that creates an instance of theResponseLaunchTemplateData.Builder
avoiding the need to create one manually viaResponseLaunchTemplateData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateData(ResponseLaunchTemplateData)
.- Parameters:
launchTemplateData
- a consumer that will call methods onResponseLaunchTemplateData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-