Class CfnAutomatedReasoningPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnAutomatedReasoningPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomatedReasoningPolicyMixinProps>
- Enclosing interface:
CfnAutomatedReasoningPolicyMixinProps
@Stability(Stable)
public static final class CfnAutomatedReasoningPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomatedReasoningPolicyMixinProps>
A builder for
CfnAutomatedReasoningPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getDescription()forceDelete(Boolean forceDelete) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getForceDelete()forceDelete(IResolvable forceDelete) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getForceDelete()Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getKmsKeyId()Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getName()Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getPolicyDefinition()policyDefinition(IResolvable policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getPolicyDefinition()Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder description(String description) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getDescription()- Parameters:
description- The description of the policy.- Returns:
this
-
forceDelete
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder forceDelete(Boolean forceDelete) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getForceDelete()- Parameters:
forceDelete- Specifies whether to force delete the automated reasoning policy even if it has active resources. When false , Amazon Bedrock validates if all artifacts have been deleted (e.g. policy version, test case, test result) for a policy before deletion. When true , Amazon Bedrock will delete the policy and all its artifacts without validation. Default is false- Returns:
this
-
forceDelete
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder forceDelete(IResolvable forceDelete) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getForceDelete()- Parameters:
forceDelete- Specifies whether to force delete the automated reasoning policy even if it has active resources. When false , Amazon Bedrock validates if all artifacts have been deleted (e.g. policy version, test case, test result) for a policy before deletion. When true , Amazon Bedrock will delete the policy and all its artifacts without validation. Default is false- Returns:
this
-
kmsKeyId
Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key with which the Policy's assets will be encrypted at rest.- Returns:
this
-
name
Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getName()- Parameters:
name- The name of the policy.- Returns:
this
-
policyDefinition
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder policyDefinition(IResolvable policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getPolicyDefinition()- Parameters:
policyDefinition- The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.- Returns:
this
-
policyDefinition
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder policyDefinition(CfnAutomatedReasoningPolicyPropsMixin.PolicyDefinitionProperty policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getPolicyDefinition()- Parameters:
policyDefinition- The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.- Returns:
this
-
tags
@Stability(Stable) public CfnAutomatedReasoningPolicyMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnAutomatedReasoningPolicyMixinProps.getTags()- Parameters:
tags- The tags associated with the Automated Reasoning policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutomatedReasoningPolicyMixinProps>- Returns:
- a new instance of
CfnAutomatedReasoningPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-