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
-
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, sdkFieldNameToField, 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.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)
-
operator
CreateLaunchTemplateRequest.Builder operator(OperatorRequest operator)
Reserved for internal use.
- Parameters:
operator
- Reserved for internal use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operator
default CreateLaunchTemplateRequest.Builder operator(Consumer<OperatorRequest.Builder> operator)
Reserved for internal use.
This is a convenience method that creates an instance of theOperatorRequest.Builder
avoiding the need to create one manually viaOperatorRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooperator(OperatorRequest)
.- Parameters:
operator
- a consumer that will call methods onOperatorRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
operator(OperatorRequest)
-
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
TagSpecifications
parameter 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
TagSpecifications
parameter 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
TagSpecifications
parameter 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
TagSpecifications
parameter 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 theTagSpecifications
parameter in the launch template data structure.TagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,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:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLaunchTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-