Interface CreateLaunchTemplateVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,
,CreateLaunchTemplateVersionRequest> Ec2Request.Builder
,SdkBuilder<CreateLaunchTemplateVersionRequest.Builder,
,CreateLaunchTemplateVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLaunchTemplateVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.launchTemplateData
(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData) The information for the launch template.launchTemplateData
(RequestLaunchTemplateData launchTemplateData) The information for the launch template.launchTemplateId
(String launchTemplateId) The ID of the launch template.launchTemplateName
(String launchTemplateName) The name of the launch template.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resolveAlias
(Boolean resolveAlias) Iftrue
, and if a Systems Manager parameter is specified forImageId
, the AMI ID is displayed in the response forimageID
.sourceVersion
(String sourceVersion) The version of the launch template on which to base the new version.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 Details
-
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
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
The ID of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
- Parameters:
launchTemplateId
- The ID of the launch template.You must specify either the launch template ID or the launch template name, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateName
The name of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
- Parameters:
launchTemplateName
- The name of the launch template.You must specify either the launch template ID or the launch template name, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceVersion
The version of the launch template on which to base the new version. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.
If you specify this parameter, the new version inherits the launch parameters from the source version. If you specify additional launch parameters for the new version, they overwrite any corresponding launch parameters inherited from the source version.
If you omit this parameter, the new version contains only the launch parameters that you specify for the new version.
- Parameters:
sourceVersion
- The version of the launch template on which to base the new version. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.If you specify this parameter, the new version inherits the launch parameters from the source version. If you specify additional launch parameters for the new version, they overwrite any corresponding launch parameters inherited from the source version.
If you omit this parameter, the new version contains only the launch parameters that you specify for the new version.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:
-
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) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLaunchTemplateVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-