public static final class LifecycleHookTargetConfig.Builder
extends java.lang.Object
LifecycleHookTargetConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LifecycleHookTargetConfig |
build()
Builds the configured instance.
|
LifecycleHookTargetConfig.Builder |
createdRole(IRole createdRole)
Sets the value of
LifecycleHookTargetConfig.getCreatedRole() |
LifecycleHookTargetConfig.Builder |
notificationTargetArn(java.lang.String notificationTargetArn)
Sets the value of
LifecycleHookTargetConfig.getNotificationTargetArn() |
public LifecycleHookTargetConfig.Builder createdRole(IRole createdRole)
LifecycleHookTargetConfig.getCreatedRole()
createdRole
- The IRole that was used to bind the lifecycle hook to the target. This parameter is required.this
public LifecycleHookTargetConfig.Builder notificationTargetArn(java.lang.String notificationTargetArn)
LifecycleHookTargetConfig.getNotificationTargetArn()
notificationTargetArn
- The targetArn that the lifecycle hook was bound to. This parameter is required.this
public LifecycleHookTargetConfig build()
LifecycleHookTargetConfig
java.lang.NullPointerException
- if any required attribute was not provided