Interface CreateLaunchTemplateVersionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>
,Ec2Request.Builder
,SdkBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateLaunchTemplateVersionRequest
public static interface CreateLaunchTemplateVersionRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateLaunchTemplateVersionRequest.Builder
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateLaunchTemplateVersionRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.default CreateLaunchTemplateVersionRequest.Builder
launchTemplateData(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData)
The information for the launch template.CreateLaunchTemplateVersionRequest.Builder
launchTemplateData(RequestLaunchTemplateData launchTemplateData)
The information for the launch template.CreateLaunchTemplateVersionRequest.Builder
launchTemplateId(String launchTemplateId)
The ID of the launch template.CreateLaunchTemplateVersionRequest.Builder
launchTemplateName(String launchTemplateName)
The name of the launch template.CreateLaunchTemplateVersionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateLaunchTemplateVersionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateLaunchTemplateVersionRequest.Builder
resolveAlias(Boolean resolveAlias)
Iftrue
, and if a Systems Manager parameter is specified forImageId
, the AMI ID is displayed in the response forimageID
.CreateLaunchTemplateVersionRequest.Builder
sourceVersion(String sourceVersion)
The version number of the launch template version on which to base the new version.CreateLaunchTemplateVersionRequest.Builder
versionDescription(String versionDescription)
A description for the version of the launch template.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
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
-
dryRun
CreateLaunchTemplateVersionRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateId
CreateLaunchTemplateVersionRequest.Builder launchTemplateId(String launchTemplateId)
The ID of the launch template.
You must specify either the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- Parameters:
launchTemplateId
- The ID of the launch template.You must specify either the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateName
CreateLaunchTemplateVersionRequest.Builder launchTemplateName(String launchTemplateName)
The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.- Parameters:
launchTemplateName
- The name of the launch template.You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceVersion
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.- Parameters:
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 inLaunchTemplateData
. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionDescription
CreateLaunchTemplateVersionRequest.Builder versionDescription(String versionDescription)
A description for the version of the launch template.
- Parameters:
versionDescription
- A description for the version of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateData
CreateLaunchTemplateVersionRequest.Builder launchTemplateData(RequestLaunchTemplateData launchTemplateData)
The information for the launch template.
- Parameters:
launchTemplateData
- The information for the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateData
default CreateLaunchTemplateVersionRequest.Builder launchTemplateData(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData)
The information for the launch template.
This is a convenience method that creates an instance of theRequestLaunchTemplateData.Builder
avoiding the need to create one manually viaRequestLaunchTemplateData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateData(RequestLaunchTemplateData)
.- Parameters:
launchTemplateData
- a consumer that will call methods onRequestLaunchTemplateData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
launchTemplateData(RequestLaunchTemplateData)
-
resolveAlias
CreateLaunchTemplateVersionRequest.Builder resolveAlias(Boolean resolveAlias)
If
true
, and if a Systems Manager parameter is specified forImageId
, the AMI ID is displayed in the response forimageID
. For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.Default:
false
- Parameters:
resolveAlias
- Iftrue
, and if a Systems Manager parameter is specified forImageId
, the AMI ID is displayed in the response forimageID
. For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.Default:
false
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateLaunchTemplateVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLaunchTemplateVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-