Interface AutomatedReasoningPolicyAddVariableMutation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutomatedReasoningPolicyAddVariableMutation.Builder,
,AutomatedReasoningPolicyAddVariableMutation> SdkBuilder<AutomatedReasoningPolicyAddVariableMutation.Builder,
,AutomatedReasoningPolicyAddVariableMutation> SdkPojo
- Enclosing class:
AutomatedReasoningPolicyAddVariableMutation
@Mutable
@NotThreadSafe
public static interface AutomatedReasoningPolicyAddVariableMutation.Builder
extends SdkPojo, CopyableBuilder<AutomatedReasoningPolicyAddVariableMutation.Builder,AutomatedReasoningPolicyAddVariableMutation>
-
Method Summary
Modifier and TypeMethodDescriptionThe variable definition that specifies the name, type, and description for the new variable being added to the policy.The variable definition that specifies the name, type, and description for the new variable 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 Details
-
variable
AutomatedReasoningPolicyAddVariableMutation.Builder variable(AutomatedReasoningPolicyDefinitionVariable variable) The variable definition that specifies the name, type, and description for the new variable being added to the policy.
- Parameters:
variable
- The variable definition that specifies the name, type, and description for the new variable being added to the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variable
default AutomatedReasoningPolicyAddVariableMutation.Builder variable(Consumer<AutomatedReasoningPolicyDefinitionVariable.Builder> variable) The variable definition that specifies the name, type, and description for the new variable being added to the policy.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyDefinitionVariable.Builder
avoiding the need to create one manually viaAutomatedReasoningPolicyDefinitionVariable.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovariable(AutomatedReasoningPolicyDefinitionVariable)
.- Parameters:
variable
- a consumer that will call methods onAutomatedReasoningPolicyDefinitionVariable.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-