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) AShutdownEventConfigurationobject that specifies the Shutdown event configuration.shutdown(ShutdownEventConfiguration shutdown) AShutdownEventConfigurationobject that specifies the Shutdown event configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
shutdown
A
ShutdownEventConfigurationobject that specifies the Shutdown event configuration.- Parameters:
shutdown- AShutdownEventConfigurationobject 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 theShutdownEventConfigurationobject that specifies the Shutdown event configuration.ShutdownEventConfiguration.Builderavoiding the need to create one manually viaShutdownEventConfiguration.builder().When the
Consumercompletes,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:
-