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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MitigationAction.BuilderactionParams(Consumer<MitigationActionParams.Builder> actionParams)The set of parameters for this mitigation action.MitigationAction.BuilderactionParams(MitigationActionParams actionParams)The set of parameters for this mitigation action.MitigationAction.Builderid(String id)A unique identifier for the mitigation action.MitigationAction.Buildername(String name)A user-friendly name for the mitigation action.MitigationAction.BuilderroleArn(String roleArn)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 Detail
-
name
MitigationAction.Builder name(String 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
MitigationAction.Builder id(String 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
MitigationAction.Builder roleArn(String 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
MitigationAction.Builder actionParams(MitigationActionParams 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.Builderavoiding the need to create one manually viaMitigationActionParams.builder().When the
Consumercompletes,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:
actionParams(MitigationActionParams)
-
-