Class AutomatedReasoningPolicyMutation
- All Implemented Interfaces:
Serializable
,SdkPojo
,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionaddRule()
A mutation to add a new rule to the policy.addType()
A mutation to add a new custom type to the policy.A mutation to add a new variable to the policy.builder()
A mutation to remove a rule from the policy.A mutation to remove a custom type from the policy.A mutation 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.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.Create an instance of this class withdeleteVariable()
initialized to the given value.fromDeleteVariable
(AutomatedReasoningPolicyDeleteVariableMutation deleteVariable) Create an instance of this class withdeleteVariable()
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.Create an instance of this class withupdateVariable()
initialized to the given value.fromUpdateVariable
(AutomatedReasoningPolicyUpdateVariableMutation 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()
static Class
<? extends AutomatedReasoningPolicyMutation.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.A mutation to modify an existing rule in the policy.A mutation to modify an existing custom type in the policy.A mutation to modify an existing variable in the policy.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
A mutation to modify an existing custom type in the policy.
- Returns:
- A mutation to modify an existing custom type in the policy.
-
deleteType
A mutation to remove a custom type from the policy.
- Returns:
- A mutation to remove a custom type from the policy.
-
addVariable
A mutation to add a new variable to the policy.
- Returns:
- A mutation to add a new variable to the policy.
-
updateVariable
A mutation to modify an existing variable in the policy.
- Returns:
- A mutation to modify an existing variable in the policy.
-
deleteVariable
A mutation to remove a variable from the policy.
- Returns:
- A mutation to remove a variable from the policy.
-
addRule
A mutation to add a new rule to the policy.
- Returns:
- A mutation to add a new rule to the policy.
-
updateRule
A mutation to modify an existing rule in the policy.
- Returns:
- A mutation to modify an existing rule in the policy.
-
deleteRule
A mutation to remove a rule from the policy.
- Returns:
- A mutation to remove a rule from the policy.
-
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<AutomatedReasoningPolicyMutation.Builder,
AutomatedReasoningPolicyMutation> - Returns:
- a builder for type T
-
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 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
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_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 beAutomatedReasoningPolicyMutation.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.
-