Interface CreateLaunchTemplateResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateLaunchTemplateResponse.Builder,CreateLaunchTemplateResponse>
,Ec2Response.Builder
,SdkBuilder<CreateLaunchTemplateResponse.Builder,CreateLaunchTemplateResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateLaunchTemplateResponse
public static interface CreateLaunchTemplateResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateResponse.Builder,CreateLaunchTemplateResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateLaunchTemplateResponse.Builder
launchTemplate(Consumer<LaunchTemplate.Builder> launchTemplate)
Information about the launch template.CreateLaunchTemplateResponse.Builder
launchTemplate(LaunchTemplate launchTemplate)
Information about the launch template.default CreateLaunchTemplateResponse.Builder
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.CreateLaunchTemplateResponse.Builder
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
launchTemplate
CreateLaunchTemplateResponse.Builder launchTemplate(LaunchTemplate 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:
launchTemplate(LaunchTemplate)
-
warning
CreateLaunchTemplateResponse.Builder 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.
- 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
default CreateLaunchTemplateResponse.Builder 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.
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:
warning(ValidationWarning)
-
-