Interface AutomatedReasoningPolicyAddRuleMutation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedReasoningPolicyAddRuleMutation.Builder,AutomatedReasoningPolicyAddRuleMutation>,SdkBuilder<AutomatedReasoningPolicyAddRuleMutation.Builder,AutomatedReasoningPolicyAddRuleMutation>,SdkPojo
- Enclosing class:
- AutomatedReasoningPolicyAddRuleMutation
@Mutable @NotThreadSafe public static interface AutomatedReasoningPolicyAddRuleMutation.Builder extends SdkPojo, CopyableBuilder<AutomatedReasoningPolicyAddRuleMutation.Builder,AutomatedReasoningPolicyAddRuleMutation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AutomatedReasoningPolicyAddRuleMutation.Builderrule(Consumer<AutomatedReasoningPolicyDefinitionRule.Builder> rule)The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.AutomatedReasoningPolicyAddRuleMutation.Builderrule(AutomatedReasoningPolicyDefinitionRule rule)The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
rule
AutomatedReasoningPolicyAddRuleMutation.Builder rule(AutomatedReasoningPolicyDefinitionRule rule)
The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.
- Parameters:
rule- The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
default AutomatedReasoningPolicyAddRuleMutation.Builder rule(Consumer<AutomatedReasoningPolicyDefinitionRule.Builder> rule)
The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyDefinitionRule.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyDefinitionRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(AutomatedReasoningPolicyDefinitionRule).- Parameters:
rule- a consumer that will call methods onAutomatedReasoningPolicyDefinitionRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rule(AutomatedReasoningPolicyDefinitionRule)
-
-