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