Class AutomatedReasoningPolicyAnnotation
- All Implemented Interfaces:
Serializable
,SdkPojo
,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionaddRule()
An operation to add a new logical rule to the policy using formal mathematical expressions.An operation to add a new rule by converting natural language descriptions into formal logical expressions.addType()
An operation to add a new custom type to the policy, defining a set of possible values for policy variables.An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.builder()
An operation to remove a rule from the policy.An operation to remove a custom type from the policy.An operation to remove a variable from the policy.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Create an instance of this class withaddRule()
initialized to the given value.Create an instance of this class withaddRule()
initialized to the given value.fromAddRuleFromNaturalLanguage
(Consumer<AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation.Builder> addRuleFromNaturalLanguage) Create an instance of this class withaddRuleFromNaturalLanguage()
initialized to the given value.fromAddRuleFromNaturalLanguage
(AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation addRuleFromNaturalLanguage) Create an instance of this class withaddRuleFromNaturalLanguage()
initialized to the given value.Create an instance of this class withaddType()
initialized to the given value.Create an instance of this class withaddType()
initialized to the given value.Create an instance of this class withaddVariable()
initialized to the given value.Create an instance of this class withaddVariable()
initialized to the given value.Create an instance of this class withdeleteRule()
initialized to the given value.Create an instance of this class withdeleteRule()
initialized to the given value.Create an instance of this class withdeleteType()
initialized to the given value.Create an instance of this class withdeleteType()
initialized to the given value.fromDeleteVariable
(Consumer<AutomatedReasoningPolicyDeleteVariableAnnotation.Builder> deleteVariable) Create an instance of this class withdeleteVariable()
initialized to the given value.fromDeleteVariable
(AutomatedReasoningPolicyDeleteVariableAnnotation deleteVariable) Create an instance of this class withdeleteVariable()
initialized to the given value.Create an instance of this class withingestContent()
initialized to the given value.fromIngestContent
(AutomatedReasoningPolicyIngestContentAnnotation ingestContent) Create an instance of this class withingestContent()
initialized to the given value.fromUpdateFromRulesFeedback
(Consumer<AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation.Builder> updateFromRulesFeedback) Create an instance of this class withupdateFromRulesFeedback()
initialized to the given value.fromUpdateFromRulesFeedback
(AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation updateFromRulesFeedback) Create an instance of this class withupdateFromRulesFeedback()
initialized to the given value.fromUpdateFromScenarioFeedback
(Consumer<AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation.Builder> updateFromScenarioFeedback) Create an instance of this class withupdateFromScenarioFeedback()
initialized to the given value.fromUpdateFromScenarioFeedback
(AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation updateFromScenarioFeedback) Create an instance of this class withupdateFromScenarioFeedback()
initialized to the given value.Create an instance of this class withupdateRule()
initialized to the given value.Create an instance of this class withupdateRule()
initialized to the given value.Create an instance of this class withupdateType()
initialized to the given value.Create an instance of this class withupdateType()
initialized to the given value.fromUpdateVariable
(Consumer<AutomatedReasoningPolicyUpdateVariableAnnotation.Builder> updateVariable) Create an instance of this class withupdateVariable()
initialized to the given value.fromUpdateVariable
(AutomatedReasoningPolicyUpdateVariableAnnotation updateVariable) Create an instance of this class withupdateVariable()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
An operation to process and incorporate new content into the policy, extracting additional rules and concepts.static Class
<? extends AutomatedReasoningPolicyAnnotation.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.type()
Retrieve an enum value representing which member of this object is populated.An operation to update the policy based on feedback about how specific rules performed during testing or validation.An operation to update the policy based on feedback about how it performed on specific test scenarios.An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.An operation to modify an existing variable in the policy, such as changing its name, type, or description.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AutomatedReasoningPolicyAnnotation.Builder,
AutomatedReasoningPolicyAnnotation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyAnnotation.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
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
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_VERSION
if 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_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-