public static final class AliasProps.Builder
extends java.lang.Object
AliasProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AliasProps.Builder |
aliasName(java.lang.String aliasName)
Sets the value of
AliasProps.getAliasName() |
AliasProps |
build()
Builds the configured instance.
|
AliasProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
AliasProps.getRemovalPolicy() |
AliasProps.Builder |
targetKey(IKey targetKey)
Sets the value of
AliasProps.getTargetKey() |
public AliasProps.Builder aliasName(java.lang.String aliasName)
AliasProps.getAliasName()
aliasName
- The name of the alias. This parameter is required.
The name must start with alias followed by a
forward slash, such as alias/. You can't specify aliases that begin with
alias/AWS. These aliases are reserved.this
public AliasProps.Builder targetKey(IKey targetKey)
AliasProps.getTargetKey()
targetKey
- The ID of the key for which you are creating the alias. This parameter is required.
Specify the key's
globally unique identifier or Amazon Resource Name (ARN). You can't
specify another alias.this
public AliasProps.Builder removalPolicy(RemovalPolicy removalPolicy)
AliasProps.getRemovalPolicy()
removalPolicy
- Policy to apply when the alias is removed from this stack.this
public AliasProps build()
AliasProps
java.lang.NullPointerException
- if any required attribute was not provided