Class AutomatedReasoningPolicyAnnotation
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyAnnotation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyAnnotation.Builder,AutomatedReasoningPolicyAnnotation>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyAnnotation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyAnnotation.Builder,AutomatedReasoningPolicyAnnotation>
Contains the various operations that can be performed on an Automated Reasoning policy, including adding, updating, and deleting rules, variables, and types.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyAnnotation.Builderstatic classAutomatedReasoningPolicyAnnotation.Type
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
addType
public final AutomatedReasoningPolicyAddTypeAnnotation addType()
An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
- Returns:
- An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
-
updateType
public final AutomatedReasoningPolicyUpdateTypeAnnotation updateType()
An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
- Returns:
- An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
-
deleteType
public final AutomatedReasoningPolicyDeleteTypeAnnotation deleteType()
An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
- Returns:
- An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
-
addVariable
public final AutomatedReasoningPolicyAddVariableAnnotation addVariable()
An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
- Returns:
- An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
-
updateVariable
public final AutomatedReasoningPolicyUpdateVariableAnnotation updateVariable()
An operation to modify an existing variable in the policy, such as changing its name, type, or description.
- Returns:
- An operation to modify an existing variable in the policy, such as changing its name, type, or description.
-
deleteVariable
public final AutomatedReasoningPolicyDeleteVariableAnnotation deleteVariable()
An operation to remove a variable from the policy. The variable must not be referenced by any rules.
- Returns:
- An operation to remove a variable from the policy. The variable must not be referenced by any rules.
-
addRule
public final AutomatedReasoningPolicyAddRuleAnnotation addRule()
An operation to add a new logical rule to the policy using formal mathematical expressions.
- Returns:
- An operation to add a new logical rule to the policy using formal mathematical expressions.
-
updateRule
public final AutomatedReasoningPolicyUpdateRuleAnnotation updateRule()
An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
- Returns:
- An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
-
deleteRule
public final AutomatedReasoningPolicyDeleteRuleAnnotation deleteRule()
An operation to remove a rule from the policy.
- Returns:
- An operation to remove a rule from the policy.
-
addRuleFromNaturalLanguage
public final AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation addRuleFromNaturalLanguage()
An operation to add a new rule by converting natural language descriptions into formal logical expressions.
- Returns:
- An operation to add a new rule by converting natural language descriptions into formal logical expressions.
-
updateFromRulesFeedback
public final AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation updateFromRulesFeedback()
An operation to update the policy based on feedback about how specific rules performed during testing or validation.
- Returns:
- An operation to update the policy based on feedback about how specific rules performed during testing or validation.
-
updateFromScenarioFeedback
public final AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation updateFromScenarioFeedback()
An operation to update the policy based on feedback about how it performed on specific test scenarios.
- Returns:
- An operation to update the policy based on feedback about how it performed on specific test scenarios.
-
ingestContent
public final AutomatedReasoningPolicyIngestContentAnnotation ingestContent()
An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
- Returns:
- An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
-
toBuilder
public AutomatedReasoningPolicyAnnotation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyAnnotation.Builder,AutomatedReasoningPolicyAnnotation>
-
builder
public static AutomatedReasoningPolicyAnnotation.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyAnnotation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromAddType
public static AutomatedReasoningPolicyAnnotation fromAddType(AutomatedReasoningPolicyAddTypeAnnotation addType)
Create an instance of this class withaddType()initialized to the given value.An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
- Parameters:
addType- An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
-
fromAddType
public static AutomatedReasoningPolicyAnnotation fromAddType(Consumer<AutomatedReasoningPolicyAddTypeAnnotation.Builder> addType)
Create an instance of this class withaddType()initialized to the given value.An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
- Parameters:
addType- An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
-
fromUpdateType
public static AutomatedReasoningPolicyAnnotation fromUpdateType(AutomatedReasoningPolicyUpdateTypeAnnotation updateType)
Create an instance of this class withupdateType()initialized to the given value.An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
- Parameters:
updateType- An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
-
fromUpdateType
public static AutomatedReasoningPolicyAnnotation fromUpdateType(Consumer<AutomatedReasoningPolicyUpdateTypeAnnotation.Builder> updateType)
Create an instance of this class withupdateType()initialized to the given value.An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
- Parameters:
updateType- An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
-
fromDeleteType
public static AutomatedReasoningPolicyAnnotation fromDeleteType(AutomatedReasoningPolicyDeleteTypeAnnotation deleteType)
Create an instance of this class withdeleteType()initialized to the given value.An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
- Parameters:
deleteType- An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
-
fromDeleteType
public static AutomatedReasoningPolicyAnnotation fromDeleteType(Consumer<AutomatedReasoningPolicyDeleteTypeAnnotation.Builder> deleteType)
Create an instance of this class withdeleteType()initialized to the given value.An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
- Parameters:
deleteType- An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
-
fromAddVariable
public static AutomatedReasoningPolicyAnnotation fromAddVariable(AutomatedReasoningPolicyAddVariableAnnotation addVariable)
Create an instance of this class withaddVariable()initialized to the given value.An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
- Parameters:
addVariable- An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
-
fromAddVariable
public static AutomatedReasoningPolicyAnnotation fromAddVariable(Consumer<AutomatedReasoningPolicyAddVariableAnnotation.Builder> addVariable)
Create an instance of this class withaddVariable()initialized to the given value.An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
- Parameters:
addVariable- An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
-
fromUpdateVariable
public static AutomatedReasoningPolicyAnnotation fromUpdateVariable(AutomatedReasoningPolicyUpdateVariableAnnotation updateVariable)
Create an instance of this class withupdateVariable()initialized to the given value.An operation to modify an existing variable in the policy, such as changing its name, type, or description.
- Parameters:
updateVariable- An operation to modify an existing variable in the policy, such as changing its name, type, or description.
-
fromUpdateVariable
public static AutomatedReasoningPolicyAnnotation fromUpdateVariable(Consumer<AutomatedReasoningPolicyUpdateVariableAnnotation.Builder> updateVariable)
Create an instance of this class withupdateVariable()initialized to the given value.An operation to modify an existing variable in the policy, such as changing its name, type, or description.
- Parameters:
updateVariable- An operation to modify an existing variable in the policy, such as changing its name, type, or description.
-
fromDeleteVariable
public static AutomatedReasoningPolicyAnnotation fromDeleteVariable(AutomatedReasoningPolicyDeleteVariableAnnotation deleteVariable)
Create an instance of this class withdeleteVariable()initialized to the given value.An operation to remove a variable from the policy. The variable must not be referenced by any rules.
- Parameters:
deleteVariable- An operation to remove a variable from the policy. The variable must not be referenced by any rules.
-
fromDeleteVariable
public static AutomatedReasoningPolicyAnnotation fromDeleteVariable(Consumer<AutomatedReasoningPolicyDeleteVariableAnnotation.Builder> deleteVariable)
Create an instance of this class withdeleteVariable()initialized to the given value.An operation to remove a variable from the policy. The variable must not be referenced by any rules.
- Parameters:
deleteVariable- An operation to remove a variable from the policy. The variable must not be referenced by any rules.
-
fromAddRule
public static AutomatedReasoningPolicyAnnotation fromAddRule(AutomatedReasoningPolicyAddRuleAnnotation addRule)
Create an instance of this class withaddRule()initialized to the given value.An operation to add a new logical rule to the policy using formal mathematical expressions.
- Parameters:
addRule- An operation to add a new logical rule to the policy using formal mathematical expressions.
-
fromAddRule
public static AutomatedReasoningPolicyAnnotation fromAddRule(Consumer<AutomatedReasoningPolicyAddRuleAnnotation.Builder> addRule)
Create an instance of this class withaddRule()initialized to the given value.An operation to add a new logical rule to the policy using formal mathematical expressions.
- Parameters:
addRule- An operation to add a new logical rule to the policy using formal mathematical expressions.
-
fromUpdateRule
public static AutomatedReasoningPolicyAnnotation fromUpdateRule(AutomatedReasoningPolicyUpdateRuleAnnotation updateRule)
Create an instance of this class withupdateRule()initialized to the given value.An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
- Parameters:
updateRule- An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
-
fromUpdateRule
public static AutomatedReasoningPolicyAnnotation fromUpdateRule(Consumer<AutomatedReasoningPolicyUpdateRuleAnnotation.Builder> updateRule)
Create an instance of this class withupdateRule()initialized to the given value.An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
- Parameters:
updateRule- An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
-
fromDeleteRule
public static AutomatedReasoningPolicyAnnotation fromDeleteRule(AutomatedReasoningPolicyDeleteRuleAnnotation deleteRule)
Create an instance of this class withdeleteRule()initialized to the given value.An operation to remove a rule from the policy.
- Parameters:
deleteRule- An operation to remove a rule from the policy.
-
fromDeleteRule
public static AutomatedReasoningPolicyAnnotation fromDeleteRule(Consumer<AutomatedReasoningPolicyDeleteRuleAnnotation.Builder> deleteRule)
Create an instance of this class withdeleteRule()initialized to the given value.An operation to remove a rule from the policy.
- Parameters:
deleteRule- An operation to remove a rule from the policy.
-
fromAddRuleFromNaturalLanguage
public static AutomatedReasoningPolicyAnnotation fromAddRuleFromNaturalLanguage(AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation addRuleFromNaturalLanguage)
Create an instance of this class withaddRuleFromNaturalLanguage()initialized to the given value.An operation to add a new rule by converting natural language descriptions into formal logical expressions.
- Parameters:
addRuleFromNaturalLanguage- An operation to add a new rule by converting natural language descriptions into formal logical expressions.
-
fromAddRuleFromNaturalLanguage
public static AutomatedReasoningPolicyAnnotation fromAddRuleFromNaturalLanguage(Consumer<AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation.Builder> addRuleFromNaturalLanguage)
Create an instance of this class withaddRuleFromNaturalLanguage()initialized to the given value.An operation to add a new rule by converting natural language descriptions into formal logical expressions.
- Parameters:
addRuleFromNaturalLanguage- An operation to add a new rule by converting natural language descriptions into formal logical expressions.
-
fromUpdateFromRulesFeedback
public static AutomatedReasoningPolicyAnnotation fromUpdateFromRulesFeedback(AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation updateFromRulesFeedback)
Create an instance of this class withupdateFromRulesFeedback()initialized to the given value.An operation to update the policy based on feedback about how specific rules performed during testing or validation.
- Parameters:
updateFromRulesFeedback- An operation to update the policy based on feedback about how specific rules performed during testing or validation.
-
fromUpdateFromRulesFeedback
public static AutomatedReasoningPolicyAnnotation fromUpdateFromRulesFeedback(Consumer<AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation.Builder> updateFromRulesFeedback)
Create an instance of this class withupdateFromRulesFeedback()initialized to the given value.An operation to update the policy based on feedback about how specific rules performed during testing or validation.
- Parameters:
updateFromRulesFeedback- An operation to update the policy based on feedback about how specific rules performed during testing or validation.
-
fromUpdateFromScenarioFeedback
public static AutomatedReasoningPolicyAnnotation fromUpdateFromScenarioFeedback(AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation updateFromScenarioFeedback)
Create an instance of this class withupdateFromScenarioFeedback()initialized to the given value.An operation to update the policy based on feedback about how it performed on specific test scenarios.
- Parameters:
updateFromScenarioFeedback- An operation to update the policy based on feedback about how it performed on specific test scenarios.
-
fromUpdateFromScenarioFeedback
public static AutomatedReasoningPolicyAnnotation fromUpdateFromScenarioFeedback(Consumer<AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation.Builder> updateFromScenarioFeedback)
Create an instance of this class withupdateFromScenarioFeedback()initialized to the given value.An operation to update the policy based on feedback about how it performed on specific test scenarios.
- Parameters:
updateFromScenarioFeedback- An operation to update the policy based on feedback about how it performed on specific test scenarios.
-
fromIngestContent
public static AutomatedReasoningPolicyAnnotation fromIngestContent(AutomatedReasoningPolicyIngestContentAnnotation ingestContent)
Create an instance of this class withingestContent()initialized to the given value.An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
- Parameters:
ingestContent- An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
-
fromIngestContent
public static AutomatedReasoningPolicyAnnotation fromIngestContent(Consumer<AutomatedReasoningPolicyIngestContentAnnotation.Builder> ingestContent)
Create an instance of this class withingestContent()initialized to the given value.An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
- Parameters:
ingestContent- An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
-
type
public AutomatedReasoningPolicyAnnotation.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAutomatedReasoningPolicyAnnotation.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beAutomatedReasoningPolicyAnnotation.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-