Class CfnPaymentCredentialProvider.SecretReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnPaymentCredentialProvider.SecretReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPaymentCredentialProvider.SecretReferenceProperty>
- Enclosing interface:
CfnPaymentCredentialProvider.SecretReferenceProperty
@Stability(Stable)
public static final class CfnPaymentCredentialProvider.SecretReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPaymentCredentialProvider.SecretReferenceProperty>
A builder for
CfnPaymentCredentialProvider.SecretReferenceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPaymentCredentialProvider.SecretReferenceProperty.getJsonKey()Sets the value ofCfnPaymentCredentialProvider.SecretReferenceProperty.getSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonKey
@Stability(Stable) public CfnPaymentCredentialProvider.SecretReferenceProperty.Builder jsonKey(String jsonKey) Sets the value ofCfnPaymentCredentialProvider.SecretReferenceProperty.getJsonKey()- Parameters:
jsonKey- The JSON key within the secret that contains the credential value. This parameter is required.- Returns:
this
-
secretId
@Stability(Stable) public CfnPaymentCredentialProvider.SecretReferenceProperty.Builder secretId(String secretId) Sets the value ofCfnPaymentCredentialProvider.SecretReferenceProperty.getSecretId()- Parameters:
secretId- The ID or ARN of the secret in AWS Secrets Manager. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPaymentCredentialProvider.SecretReferenceProperty>- Returns:
- a new instance of
CfnPaymentCredentialProvider.SecretReferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-