Class LifecycleHookTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.LifecycleHookTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LifecycleHookTargetConfig>
- Enclosing interface:
- LifecycleHookTargetConfig
@Stability(Stable)
public static final class LifecycleHookTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<LifecycleHookTargetConfig>
A builder for
LifecycleHookTargetConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.createdRole
(IRole createdRole) Sets the value ofLifecycleHookTargetConfig.getCreatedRole()
notificationTargetArn
(String notificationTargetArn) Sets the value ofLifecycleHookTargetConfig.getNotificationTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createdRole
Sets the value ofLifecycleHookTargetConfig.getCreatedRole()
- Parameters:
createdRole
- The IRole that was used to bind the lifecycle hook to the target. This parameter is required.- Returns:
this
-
notificationTargetArn
@Stability(Stable) public LifecycleHookTargetConfig.Builder notificationTargetArn(String notificationTargetArn) Sets the value ofLifecycleHookTargetConfig.getNotificationTargetArn()
- Parameters:
notificationTargetArn
- The targetArn that the lifecycle hook was bound to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LifecycleHookTargetConfig>
- Returns:
- a new instance of
LifecycleHookTargetConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-