Class KeyReference.Builder
java.lang.Object
software.amazon.awscdk.services.kms.KeyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeyReference>
- Enclosing interface:
KeyReference
@Stability(Stable)
public static final class KeyReference.Builder
extends Object
implements software.amazon.jsii.Builder<KeyReference>
A builder for
KeyReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofKeyReference.getKeyArn()
Sets the value ofKeyReference.getKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyArn
Sets the value ofKeyReference.getKeyArn()
- Parameters:
keyArn
- The ARN of the Key resource. This parameter is required.- Returns:
this
-
keyId
Sets the value ofKeyReference.getKeyId()
- Parameters:
keyId
- The KeyId of the Key resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KeyReference>
- Returns:
- a new instance of
KeyReference
- Throws:
NullPointerException
- if any required attribute was not provided
-