Interface MitigationAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MitigationAction.Builder,
,MitigationAction> SdkBuilder<MitigationAction.Builder,
,MitigationAction> SdkPojo
- Enclosing class:
MitigationAction
public static interface MitigationAction.Builder
extends SdkPojo, CopyableBuilder<MitigationAction.Builder,MitigationAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MitigationAction.Builder
actionParams
(Consumer<MitigationActionParams.Builder> actionParams) The set of parameters for this mitigation action.actionParams
(MitigationActionParams actionParams) The set of parameters for this mitigation action.A unique identifier for the mitigation action.A user-friendly name for the mitigation action.The IAM role ARN used to apply this mitigation action.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, sdkFields
-
Method Details
-
name
A user-friendly name for the mitigation action.
- Parameters:
name
- A user-friendly name for the mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
A unique identifier for the mitigation action.
- Parameters:
id
- A unique identifier for the mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The IAM role ARN used to apply this mitigation action.
- Parameters:
roleArn
- The IAM role ARN used to apply this mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionParams
The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
- Parameters:
actionParams
- The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionParams
default MitigationAction.Builder actionParams(Consumer<MitigationActionParams.Builder> actionParams) The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
This is a convenience method that creates an instance of theMitigationActionParams.Builder
avoiding the need to create one manually viaMitigationActionParams.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionParams(MitigationActionParams)
.- Parameters:
actionParams
- a consumer that will call methods onMitigationActionParams.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-