Interface CreateLaunchTemplateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateLaunchTemplateResponse.Builder,
,CreateLaunchTemplateResponse> Ec2Response.Builder
,SdkBuilder<CreateLaunchTemplateResponse.Builder,
,CreateLaunchTemplateResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateLaunchTemplateResponse
@Mutable
@NotThreadSafe
public static interface CreateLaunchTemplateResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateResponse.Builder,CreateLaunchTemplateResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlaunchTemplate
(Consumer<LaunchTemplate.Builder> launchTemplate) Information about the launch template.launchTemplate
(LaunchTemplate launchTemplate) Information about the launch template.warning
(Consumer<ValidationWarning.Builder> warning) If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.warning
(ValidationWarning warning) If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
launchTemplate
Information about the launch template.
- Parameters:
launchTemplate
- Information about the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default CreateLaunchTemplateResponse.Builder launchTemplate(Consumer<LaunchTemplate.Builder> launchTemplate) Information about the launch template.
This is a convenience method that creates an instance of theLaunchTemplate.Builder
avoiding the need to create one manually viaLaunchTemplate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(LaunchTemplate)
.- Parameters:
launchTemplate
- a consumer that will call methods onLaunchTemplate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
warning
If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.
- Parameters:
warning
- If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warning
If the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.
This is a convenience method that creates an instance of theValidationWarning.Builder
avoiding the need to create one manually viaValidationWarning.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towarning(ValidationWarning)
.- Parameters:
warning
- a consumer that will call methods onValidationWarning.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-