Class CfnDataSource.DeletionProtectionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSource.DeletionProtectionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DeletionProtectionConfigurationProperty>
- Enclosing interface:
CfnDataSource.DeletionProtectionConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.DeletionProtectionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DeletionProtectionConfigurationProperty>
A builder for
CfnDataSource.DeletionProtectionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionProtectionStatus(String deletionProtectionStatus) deletionProtectionThreshold(Number deletionProtectionThreshold)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionProtectionStatus
@Stability(Stable) public CfnDataSource.DeletionProtectionConfigurationProperty.Builder deletionProtectionStatus(String deletionProtectionStatus) Sets the value ofCfnDataSource.DeletionProtectionConfigurationProperty.getDeletionProtectionStatus()- Parameters:
deletionProtectionStatus- Indicates whether a feature is enabled or disabled. This parameter is required.- Returns:
this
-
deletionProtectionThreshold
@Stability(Stable) public CfnDataSource.DeletionProtectionConfigurationProperty.Builder deletionProtectionThreshold(Number deletionProtectionThreshold) Sets the value ofCfnDataSource.DeletionProtectionConfigurationProperty.getDeletionProtectionThreshold()- Parameters:
deletionProtectionThreshold- Threshold for deletion protection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.DeletionProtectionConfigurationProperty>- Returns:
- a new instance of
CfnDataSource.DeletionProtectionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-