Interface LaunchTemplate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplate.Builder,
,LaunchTemplate> SdkBuilder<LaunchTemplate.Builder,
,LaunchTemplate> SdkPojo
- Enclosing class:
LaunchTemplate
@Mutable
@NotThreadSafe
public static interface LaunchTemplate.Builder
extends SdkPojo, CopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LaunchTemplate.Builder
launchTemplateSpecification
(Consumer<LaunchTemplateSpecification.Builder> launchTemplateSpecification) The launch template.launchTemplateSpecification
(LaunchTemplateSpecification launchTemplateSpecification) The launch template.overrides
(Collection<LaunchTemplateOverrides> overrides) Any properties that you specify override the same properties in the launch template.overrides
(Consumer<LaunchTemplateOverrides.Builder>... overrides) Any properties that you specify override the same properties in the launch template.overrides
(LaunchTemplateOverrides... overrides) Any properties that you specify override the same properties in 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, sdkFieldNameToField, sdkFields
-
Method Details
-
launchTemplateSpecification
LaunchTemplate.Builder launchTemplateSpecification(LaunchTemplateSpecification launchTemplateSpecification) The launch template.
- Parameters:
launchTemplateSpecification
- The launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateSpecification
default LaunchTemplate.Builder launchTemplateSpecification(Consumer<LaunchTemplateSpecification.Builder> launchTemplateSpecification) The launch template.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.Builder
avoiding the need to create one manually viaLaunchTemplateSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateSpecification(LaunchTemplateSpecification)
.- Parameters:
launchTemplateSpecification
- a consumer that will call methods onLaunchTemplateSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrides
Any properties that you specify override the same properties in the launch template.
- Parameters:
overrides
- Any properties that you specify override the same properties in the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrides
Any properties that you specify override the same properties in the launch template.
- Parameters:
overrides
- Any properties that you specify override the same properties in the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrides
Any properties that you specify override the same properties in the launch template.
This is a convenience method that creates an instance of theLaunchTemplateOverrides.Builder
avoiding the need to create one manually viaLaunchTemplateOverrides.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooverrides(List<LaunchTemplateOverrides>)
.- Parameters:
overrides
- a consumer that will call methods onLaunchTemplateOverrides.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-