Interface CreateLaunchTemplateRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateLaunchTemplateRequest.Builder,CreateLaunchTemplateRequest>,Ec2Request.Builder,SdkBuilder<CreateLaunchTemplateRequest.Builder,CreateLaunchTemplateRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateLaunchTemplateRequest
public static interface CreateLaunchTemplateRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateRequest.Builder,CreateLaunchTemplateRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateLaunchTemplateRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateLaunchTemplateRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.default CreateLaunchTemplateRequest.BuilderlaunchTemplateData(Consumer<RequestLaunchTemplateData.Builder> launchTemplateData)The information for the launch template.CreateLaunchTemplateRequest.BuilderlaunchTemplateData(RequestLaunchTemplateData launchTemplateData)The information for the launch template.CreateLaunchTemplateRequest.BuilderlaunchTemplateName(String launchTemplateName)A name for the launch template.CreateLaunchTemplateRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateLaunchTemplateRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateLaunchTemplateRequest.BuildertagSpecifications(Collection<TagSpecification> tagSpecifications)The tags to apply to the launch template on creation.CreateLaunchTemplateRequest.BuildertagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)The tags to apply to the launch template on creation.CreateLaunchTemplateRequest.BuildertagSpecifications(TagSpecification... tagSpecifications)The tags to apply to the launch template on creation.CreateLaunchTemplateRequest.BuilderversionDescription(String versionDescription)A description for the first 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
CreateLaunchTemplateRequest.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
CreateLaunchTemplateRequest.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.
-
launchTemplateName
CreateLaunchTemplateRequest.Builder launchTemplateName(String 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
CreateLaunchTemplateRequest.Builder versionDescription(String 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:
launchTemplateData(RequestLaunchTemplateData)
-
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
CreateLaunchTemplateRequest.Builder tagSpecifications(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
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. This is a convenience method that creates an instance of theTo 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.TagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagSpecifications(List.) - 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:
#tagSpecifications(java.util.Collection)
-
overrideConfiguration
CreateLaunchTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLaunchTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-