Interface LifecycleEventConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecycleEventConfiguration.Builder,
,LifecycleEventConfiguration> SdkBuilder<LifecycleEventConfiguration.Builder,
,LifecycleEventConfiguration> SdkPojo
- Enclosing class:
LifecycleEventConfiguration
public static interface LifecycleEventConfiguration.Builder
extends SdkPojo, CopyableBuilder<LifecycleEventConfiguration.Builder,LifecycleEventConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionshutdown
(Consumer<ShutdownEventConfiguration.Builder> shutdown) AShutdownEventConfiguration
object that specifies the Shutdown event configuration.shutdown
(ShutdownEventConfiguration shutdown) AShutdownEventConfiguration
object that specifies the Shutdown event configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
shutdown
A
ShutdownEventConfiguration
object that specifies the Shutdown event configuration.- Parameters:
shutdown
- AShutdownEventConfiguration
object that specifies the Shutdown event configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shutdown
default LifecycleEventConfiguration.Builder shutdown(Consumer<ShutdownEventConfiguration.Builder> shutdown) A
This is a convenience method that creates an instance of theShutdownEventConfiguration
object that specifies the Shutdown event configuration.ShutdownEventConfiguration.Builder
avoiding the need to create one manually viaShutdownEventConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshutdown(ShutdownEventConfiguration)
.- Parameters:
shutdown
- a consumer that will call methods onShutdownEventConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-