Class CfnAutomatedReasoningPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAutomatedReasoningPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomatedReasoningPolicyProps>
- Enclosing interface:
CfnAutomatedReasoningPolicyProps
@Stability(Stable)
public static final class CfnAutomatedReasoningPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomatedReasoningPolicyProps>
A builder for
CfnAutomatedReasoningPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAutomatedReasoningPolicyProps.getDescription()forceDelete(Boolean forceDelete) Sets the value ofCfnAutomatedReasoningPolicyProps.getForceDelete()forceDelete(IResolvable forceDelete) Sets the value ofCfnAutomatedReasoningPolicyProps.getForceDelete()Sets the value ofCfnAutomatedReasoningPolicyProps.getKmsKeyId()Sets the value ofCfnAutomatedReasoningPolicyProps.getName()policyDefinition(IResolvable policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyProps.getPolicyDefinition()policyDefinition(CfnAutomatedReasoningPolicy.PolicyDefinitionProperty policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyProps.getPolicyDefinition()Sets the value ofCfnAutomatedReasoningPolicyProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAutomatedReasoningPolicyProps.getName()- Parameters:
name- The name of the policy. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAutomatedReasoningPolicyProps.getDescription()- Parameters:
description- The description of the policy.- Returns:
this
-
forceDelete
Sets the value ofCfnAutomatedReasoningPolicyProps.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 CfnAutomatedReasoningPolicyProps.Builder forceDelete(IResolvable forceDelete) Sets the value ofCfnAutomatedReasoningPolicyProps.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 ofCfnAutomatedReasoningPolicyProps.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key with which the Policy's assets will be encrypted at rest.- Returns:
this
-
policyDefinition
@Stability(Stable) public CfnAutomatedReasoningPolicyProps.Builder policyDefinition(IResolvable policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyProps.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 CfnAutomatedReasoningPolicyProps.Builder policyDefinition(CfnAutomatedReasoningPolicy.PolicyDefinitionProperty policyDefinition) Sets the value ofCfnAutomatedReasoningPolicyProps.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 CfnAutomatedReasoningPolicyProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnAutomatedReasoningPolicyProps.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<CfnAutomatedReasoningPolicyProps>- Returns:
- a new instance of
CfnAutomatedReasoningPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-