public static interface CreateLaunchTemplateVersionRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateLaunchTemplateVersionRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Constraint: Maximum 128 ASCII characters.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.
Constraint: Maximum 128 ASCII characters.
CreateLaunchTemplateVersionRequest.Builder launchTemplateId(String launchTemplateId)
The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
launchTemplateId
- The ID of the launch template. You must specify either the launch template ID or launch template name
in the request.CreateLaunchTemplateVersionRequest.Builder launchTemplateName(String launchTemplateName)
The name of the launch template. You must specify either the launch template ID or launch template name in the request.
launchTemplateName
- The name of the launch template. You must specify either the launch template ID or launch template
name in the request.CreateLaunchTemplateVersionRequest.Builder sourceVersion(String sourceVersion)
The version number of the launch template version on which to base the new version. The new version inherits
the same launch parameters as the source version, except for parameters that you specify in
LaunchTemplateData
. Snapshots applied to the block device mapping are ignored when creating a
new version unless they are explicitly included.
sourceVersion
- The version number of the launch template version on which to base the new version. The new version
inherits the same launch parameters as the source version, except for parameters that you specify in
LaunchTemplateData
. Snapshots applied to the block device mapping are ignored when
creating a new version unless they are explicitly included.CreateLaunchTemplateVersionRequest.Builder versionDescription(String versionDescription)
A description for the version of the launch template.
versionDescription
- A description for the version of the launch template.CreateLaunchTemplateVersionRequest.Builder launchTemplateData(RequestLaunchTemplateData launchTemplateData)
The information for the launch template.
launchTemplateData
- The information for the launch template.default CreateLaunchTemplateVersionRequest.Builder launchTemplateData(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData)
The information for the launch template.
This is a convenience that creates an instance of theRequestLaunchTemplateData.Builder
avoiding the
need to create one manually via RequestLaunchTemplateData.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to launchTemplateData(RequestLaunchTemplateData)
.launchTemplateData
- a consumer that will call methods on RequestLaunchTemplateData.Builder
launchTemplateData(RequestLaunchTemplateData)
CreateLaunchTemplateVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateLaunchTemplateVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.