Class ReplicaRegion.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.ReplicaRegion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReplicaRegion>
- Enclosing interface:
ReplicaRegion
@Stability(Stable)
public static final class ReplicaRegion.Builder
extends Object
implements software.amazon.jsii.Builder<ReplicaRegion>
A builder for
ReplicaRegion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionKey
(IKey encryptionKey) Sets the value ofReplicaRegion.getEncryptionKey()
Sets the value ofReplicaRegion.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Sets the value ofReplicaRegion.getRegion()
- Parameters:
region
- The name of the region. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofReplicaRegion.getEncryptionKey()
- Parameters:
encryptionKey
- The customer-managed encryption key to use for encrypting the secret value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ReplicaRegion>
- Returns:
- a new instance of
ReplicaRegion
- Throws:
NullPointerException
- if any required attribute was not provided
-