Class CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomatedReasoningPolicy.PolicyDefinitionProperty>
- Enclosing interface:
CfnAutomatedReasoningPolicy.PolicyDefinitionProperty
@Stability(Stable)
public static final class CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomatedReasoningPolicy.PolicyDefinitionProperty>
A builder for
CfnAutomatedReasoningPolicy.PolicyDefinitionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getRules()
rules
(IResolvable rules) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getRules()
Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getTypes()
types
(IResolvable types) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getTypes()
Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVariables()
variables
(IResolvable variables) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVariables()
Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rules
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder rules(IResolvable rules) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getRules()
- Parameters:
rules
- The collection of rules that define the policy logic.- Returns:
this
-
rules
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getRules()
- Parameters:
rules
- The collection of rules that define the policy logic.- Returns:
this
-
types
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder types(IResolvable types) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getTypes()
- Parameters:
types
- The custom types defined within the policy definition.- Returns:
this
-
types
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder types(List<? extends Object> types) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getTypes()
- Parameters:
types
- The custom types defined within the policy definition.- Returns:
this
-
variables
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder variables(IResolvable variables) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVariables()
- Parameters:
variables
- The variables used within the policy definition.- Returns:
this
-
variables
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder variables(List<? extends Object> variables) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVariables()
- Parameters:
variables
- The variables used within the policy definition.- Returns:
this
-
version
@Stability(Stable) public CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Builder version(String version) Sets the value ofCfnAutomatedReasoningPolicy.PolicyDefinitionProperty.getVersion()
- Parameters:
version
- The version of the policy definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutomatedReasoningPolicy.PolicyDefinitionProperty>
- Returns:
- a new instance of
CfnAutomatedReasoningPolicy.PolicyDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-