Interface CreateLaunchTemplateVersionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateLaunchTemplateVersionResponse.Builder,
,CreateLaunchTemplateVersionResponse> Ec2Response.Builder
,SdkBuilder<CreateLaunchTemplateVersionResponse.Builder,
,CreateLaunchTemplateVersionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateLaunchTemplateVersionResponse
-
Method Summary
Modifier and TypeMethodDescriptionlaunchTemplateVersion
(Consumer<LaunchTemplateVersion.Builder> launchTemplateVersion) Information about the launch template version.launchTemplateVersion
(LaunchTemplateVersion launchTemplateVersion) Information about the launch template version.warning
(Consumer<ValidationWarning.Builder> warning) If the new version of 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 new version of 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 Details
-
launchTemplateVersion
CreateLaunchTemplateVersionResponse.Builder launchTemplateVersion(LaunchTemplateVersion launchTemplateVersion) Information about the launch template version.
- Parameters:
launchTemplateVersion
- Information about the launch template version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateVersion
default CreateLaunchTemplateVersionResponse.Builder launchTemplateVersion(Consumer<LaunchTemplateVersion.Builder> launchTemplateVersion) Information about the launch template version.
This is a convenience method that creates an instance of theLaunchTemplateVersion.Builder
avoiding the need to create one manually viaLaunchTemplateVersion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateVersion(LaunchTemplateVersion)
.- Parameters:
launchTemplateVersion
- a consumer that will call methods onLaunchTemplateVersion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
warning
If the new version of 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 new version of 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 CreateLaunchTemplateVersionResponse.Builder warning(Consumer<ValidationWarning.Builder> warning) If the new version of 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:
-