Class AliasAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.kms.AliasAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AliasAttributes>
- Enclosing interface:
AliasAttributes
@Stability(Stable)
public static final class AliasAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AliasAttributes>
A builder for
AliasAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAliasAttributes.getAliasName()
aliasTargetKey
(IKey aliasTargetKey) Sets the value ofAliasAttributes.getAliasTargetKey()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aliasName
Sets the value ofAliasAttributes.getAliasName()
- Parameters:
aliasName
- Specifies the alias name. This parameter is required. This value must begin with alias/ followed by a name (i.e. alias/ExampleAlias)- Returns:
this
-
aliasTargetKey
Sets the value ofAliasAttributes.getAliasTargetKey()
- Parameters:
aliasTargetKey
- The customer master key (CMK) to which the Alias refers. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AliasAttributes>
- Returns:
- a new instance of
AliasAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-