Class BindHookTargetOptions.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.BindHookTargetOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BindHookTargetOptions>
- Enclosing interface:
- BindHookTargetOptions
@Stability(Stable)
public static final class BindHookTargetOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BindHookTargetOptions>
A builder for
BindHookTargetOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lifecycleHook(LifecycleHook lifecycleHook) Sets the value ofBindHookTargetOptions.getLifecycleHook()Sets the value ofBindHookTargetOptions.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lifecycleHook
Sets the value ofBindHookTargetOptions.getLifecycleHook()- Parameters:
lifecycleHook- The lifecycle hook to attach to. This parameter is required. [disable-awslint:ref-via-interface]- Returns:
this
-
role
Sets the value ofBindHookTargetOptions.getRole()- Parameters:
role- The role to use when attaching to the lifecycle hook. [disable-awslint:ref-via-interface]- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BindHookTargetOptions>- Returns:
- a new instance of
BindHookTargetOptions - Throws:
NullPointerException- if any required attribute was not provided
-