Class AutomatedReasoningPolicyMutation
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyMutation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyMutation.Builder,AutomatedReasoningPolicyMutation>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyMutation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyMutation.Builder,AutomatedReasoningPolicyMutation>
A container for various mutation operations that can be applied to an Automated Reasoning policy, including adding, updating, and deleting policy elements.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyMutation.Builderstatic classAutomatedReasoningPolicyMutation.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 AutomatedReasoningPolicyAddTypeMutation addType()
A mutation to add a new custom type to the policy.
- Returns:
- A mutation to add a new custom type to the policy.
-
updateType
public final AutomatedReasoningPolicyUpdateTypeMutation updateType()
A mutation to modify an existing custom type in the policy.
- Returns:
- A mutation to modify an existing custom type in the policy.
-
deleteType
public final AutomatedReasoningPolicyDeleteTypeMutation deleteType()
A mutation to remove a custom type from the policy.
- Returns:
- A mutation to remove a custom type from the policy.
-
addVariable
public final AutomatedReasoningPolicyAddVariableMutation addVariable()
A mutation to add a new variable to the policy.
- Returns:
- A mutation to add a new variable to the policy.
-
updateVariable
public final AutomatedReasoningPolicyUpdateVariableMutation updateVariable()
A mutation to modify an existing variable in the policy.
- Returns:
- A mutation to modify an existing variable in the policy.
-
deleteVariable
public final AutomatedReasoningPolicyDeleteVariableMutation deleteVariable()
A mutation to remove a variable from the policy.
- Returns:
- A mutation to remove a variable from the policy.
-
addRule
public final AutomatedReasoningPolicyAddRuleMutation addRule()
A mutation to add a new rule to the policy.
- Returns:
- A mutation to add a new rule to the policy.
-
updateRule
public final AutomatedReasoningPolicyUpdateRuleMutation updateRule()
A mutation to modify an existing rule in the policy.
- Returns:
- A mutation to modify an existing rule in the policy.
-
deleteRule
public final AutomatedReasoningPolicyDeleteRuleMutation deleteRule()
A mutation to remove a rule from the policy.
- Returns:
- A mutation to remove a rule from the policy.
-
toBuilder
public AutomatedReasoningPolicyMutation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyMutation.Builder,AutomatedReasoningPolicyMutation>
-
builder
public static AutomatedReasoningPolicyMutation.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyMutation.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 AutomatedReasoningPolicyMutation fromAddType(AutomatedReasoningPolicyAddTypeMutation addType)
Create an instance of this class withaddType()initialized to the given value.A mutation to add a new custom type to the policy.
- Parameters:
addType- A mutation to add a new custom type to the policy.
-
fromAddType
public static AutomatedReasoningPolicyMutation fromAddType(Consumer<AutomatedReasoningPolicyAddTypeMutation.Builder> addType)
Create an instance of this class withaddType()initialized to the given value.A mutation to add a new custom type to the policy.
- Parameters:
addType- A mutation to add a new custom type to the policy.
-
fromUpdateType
public static AutomatedReasoningPolicyMutation fromUpdateType(AutomatedReasoningPolicyUpdateTypeMutation updateType)
Create an instance of this class withupdateType()initialized to the given value.A mutation to modify an existing custom type in the policy.
- Parameters:
updateType- A mutation to modify an existing custom type in the policy.
-
fromUpdateType
public static AutomatedReasoningPolicyMutation fromUpdateType(Consumer<AutomatedReasoningPolicyUpdateTypeMutation.Builder> updateType)
Create an instance of this class withupdateType()initialized to the given value.A mutation to modify an existing custom type in the policy.
- Parameters:
updateType- A mutation to modify an existing custom type in the policy.
-
fromDeleteType
public static AutomatedReasoningPolicyMutation fromDeleteType(AutomatedReasoningPolicyDeleteTypeMutation deleteType)
Create an instance of this class withdeleteType()initialized to the given value.A mutation to remove a custom type from the policy.
- Parameters:
deleteType- A mutation to remove a custom type from the policy.
-
fromDeleteType
public static AutomatedReasoningPolicyMutation fromDeleteType(Consumer<AutomatedReasoningPolicyDeleteTypeMutation.Builder> deleteType)
Create an instance of this class withdeleteType()initialized to the given value.A mutation to remove a custom type from the policy.
- Parameters:
deleteType- A mutation to remove a custom type from the policy.
-
fromAddVariable
public static AutomatedReasoningPolicyMutation fromAddVariable(AutomatedReasoningPolicyAddVariableMutation addVariable)
Create an instance of this class withaddVariable()initialized to the given value.A mutation to add a new variable to the policy.
- Parameters:
addVariable- A mutation to add a new variable to the policy.
-
fromAddVariable
public static AutomatedReasoningPolicyMutation fromAddVariable(Consumer<AutomatedReasoningPolicyAddVariableMutation.Builder> addVariable)
Create an instance of this class withaddVariable()initialized to the given value.A mutation to add a new variable to the policy.
- Parameters:
addVariable- A mutation to add a new variable to the policy.
-
fromUpdateVariable
public static AutomatedReasoningPolicyMutation fromUpdateVariable(AutomatedReasoningPolicyUpdateVariableMutation updateVariable)
Create an instance of this class withupdateVariable()initialized to the given value.A mutation to modify an existing variable in the policy.
- Parameters:
updateVariable- A mutation to modify an existing variable in the policy.
-
fromUpdateVariable
public static AutomatedReasoningPolicyMutation fromUpdateVariable(Consumer<AutomatedReasoningPolicyUpdateVariableMutation.Builder> updateVariable)
Create an instance of this class withupdateVariable()initialized to the given value.A mutation to modify an existing variable in the policy.
- Parameters:
updateVariable- A mutation to modify an existing variable in the policy.
-
fromDeleteVariable
public static AutomatedReasoningPolicyMutation fromDeleteVariable(AutomatedReasoningPolicyDeleteVariableMutation deleteVariable)
Create an instance of this class withdeleteVariable()initialized to the given value.A mutation to remove a variable from the policy.
- Parameters:
deleteVariable- A mutation to remove a variable from the policy.
-
fromDeleteVariable
public static AutomatedReasoningPolicyMutation fromDeleteVariable(Consumer<AutomatedReasoningPolicyDeleteVariableMutation.Builder> deleteVariable)
Create an instance of this class withdeleteVariable()initialized to the given value.A mutation to remove a variable from the policy.
- Parameters:
deleteVariable- A mutation to remove a variable from the policy.
-
fromAddRule
public static AutomatedReasoningPolicyMutation fromAddRule(AutomatedReasoningPolicyAddRuleMutation addRule)
Create an instance of this class withaddRule()initialized to the given value.A mutation to add a new rule to the policy.
- Parameters:
addRule- A mutation to add a new rule to the policy.
-
fromAddRule
public static AutomatedReasoningPolicyMutation fromAddRule(Consumer<AutomatedReasoningPolicyAddRuleMutation.Builder> addRule)
Create an instance of this class withaddRule()initialized to the given value.A mutation to add a new rule to the policy.
- Parameters:
addRule- A mutation to add a new rule to the policy.
-
fromUpdateRule
public static AutomatedReasoningPolicyMutation fromUpdateRule(AutomatedReasoningPolicyUpdateRuleMutation updateRule)
Create an instance of this class withupdateRule()initialized to the given value.A mutation to modify an existing rule in the policy.
- Parameters:
updateRule- A mutation to modify an existing rule in the policy.
-
fromUpdateRule
public static AutomatedReasoningPolicyMutation fromUpdateRule(Consumer<AutomatedReasoningPolicyUpdateRuleMutation.Builder> updateRule)
Create an instance of this class withupdateRule()initialized to the given value.A mutation to modify an existing rule in the policy.
- Parameters:
updateRule- A mutation to modify an existing rule in the policy.
-
fromDeleteRule
public static AutomatedReasoningPolicyMutation fromDeleteRule(AutomatedReasoningPolicyDeleteRuleMutation deleteRule)
Create an instance of this class withdeleteRule()initialized to the given value.A mutation to remove a rule from the policy.
- Parameters:
deleteRule- A mutation to remove a rule from the policy.
-
fromDeleteRule
public static AutomatedReasoningPolicyMutation fromDeleteRule(Consumer<AutomatedReasoningPolicyDeleteRuleMutation.Builder> deleteRule)
Create an instance of this class withdeleteRule()initialized to the given value.A mutation to remove a rule from the policy.
- Parameters:
deleteRule- A mutation to remove a rule from the policy.
-
type
public AutomatedReasoningPolicyMutation.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 beAutomatedReasoningPolicyMutation.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 beAutomatedReasoningPolicyMutation.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
-
-