Interface CreateLaunchTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateLaunchTemplateRequest.Builder,,CreateLaunchTemplateRequest> Ec2Request.Builder,SdkBuilder<CreateLaunchTemplateRequest.Builder,,CreateLaunchTemplateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateLaunchTemplateRequest
-
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.launchTemplateName(String launchTemplateName) A name for the launch template.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the launch template on creation.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the launch template on creation.tagSpecifications(TagSpecification... tagSpecifications) The tags to apply to the launch template on creation.versionDescription(String versionDescription) A description for the first version of the launch template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.
-
launchTemplateName
A name for the launch template.
- Parameters:
launchTemplateName- A name for the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionDescription
A description for the first version of the launch template.
- Parameters:
versionDescription- A description for the first version of the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateData
CreateLaunchTemplateRequest.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 CreateLaunchTemplateRequest.Builder launchTemplateData(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData) The information for the launch template.
This is a convenience method that creates an instance of theRequestLaunchTemplateData.Builderavoiding the need to create one manually viaRequestLaunchTemplateData.builder().When the
Consumercompletes,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:
-
tagSpecifications
CreateLaunchTemplateRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template.To specify the tags for the resources that are created when an instance is launched, you must use the
TagSpecificationsparameter in the launch template data structure.- Parameters:
tagSpecifications- The tags to apply to the launch template on creation. To tag the launch template, the resource type must belaunch-template.To specify the tags for the resources that are created when an instance is launched, you must use the
TagSpecificationsparameter in the launch template data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template.To specify the tags for the resources that are created when an instance is launched, you must use the
TagSpecificationsparameter in the launch template data structure.- Parameters:
tagSpecifications- The tags to apply to the launch template on creation. To tag the launch template, the resource type must belaunch-template.To specify the tags for the resources that are created when an instance is launched, you must use the
TagSpecificationsparameter in the launch template data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateLaunchTemplateRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template.To specify the tags for the resources that are created when an instance is launched, you must use the
This is a convenience method that creates an instance of theTagSpecificationsparameter in the launch template data structure.TagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateLaunchTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLaunchTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-