Interface DetectMitigationActionsTaskSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DetectMitigationActionsTaskSummary.Builder,DetectMitigationActionsTaskSummary>,SdkBuilder<DetectMitigationActionsTaskSummary.Builder,DetectMitigationActionsTaskSummary>,SdkPojo
- Enclosing class:
- DetectMitigationActionsTaskSummary
public static interface DetectMitigationActionsTaskSummary.Builder extends SdkPojo, CopyableBuilder<DetectMitigationActionsTaskSummary.Builder,DetectMitigationActionsTaskSummary>
-
-
Method Summary
-
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
-
taskId
DetectMitigationActionsTaskSummary.Builder taskId(String taskId)
The unique identifier of the task.
- Parameters:
taskId- The unique identifier of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskStatus
DetectMitigationActionsTaskSummary.Builder taskStatus(String taskStatus)
The status of the task.
- Parameters:
taskStatus- The status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DetectMitigationActionsTaskStatus,DetectMitigationActionsTaskStatus
-
taskStatus
DetectMitigationActionsTaskSummary.Builder taskStatus(DetectMitigationActionsTaskStatus taskStatus)
The status of the task.
- Parameters:
taskStatus- The status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DetectMitigationActionsTaskStatus,DetectMitigationActionsTaskStatus
-
taskStartTime
DetectMitigationActionsTaskSummary.Builder taskStartTime(Instant taskStartTime)
The date the task started.
- Parameters:
taskStartTime- The date the task started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskEndTime
DetectMitigationActionsTaskSummary.Builder taskEndTime(Instant taskEndTime)
The date the task ended.
- Parameters:
taskEndTime- The date the task ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
DetectMitigationActionsTaskSummary.Builder target(DetectMitigationActionsTaskTarget target)
Specifies the ML Detect findings to which the mitigation actions are applied.
- Parameters:
target- Specifies the ML Detect findings to which the mitigation actions are applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
default DetectMitigationActionsTaskSummary.Builder target(Consumer<DetectMitigationActionsTaskTarget.Builder> target)
Specifies the ML Detect findings to which the mitigation actions are applied.
This is a convenience method that creates an instance of theDetectMitigationActionsTaskTarget.Builderavoiding the need to create one manually viaDetectMitigationActionsTaskTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(DetectMitigationActionsTaskTarget).- Parameters:
target- a consumer that will call methods onDetectMitigationActionsTaskTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
target(DetectMitigationActionsTaskTarget)
-
violationEventOccurrenceRange
DetectMitigationActionsTaskSummary.Builder violationEventOccurrenceRange(ViolationEventOccurrenceRange violationEventOccurrenceRange)
Specifies the time period of which violation events occurred between.
- Parameters:
violationEventOccurrenceRange- Specifies the time period of which violation events occurred between.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violationEventOccurrenceRange
default DetectMitigationActionsTaskSummary.Builder violationEventOccurrenceRange(Consumer<ViolationEventOccurrenceRange.Builder> violationEventOccurrenceRange)
Specifies the time period of which violation events occurred between.
This is a convenience method that creates an instance of theViolationEventOccurrenceRange.Builderavoiding the need to create one manually viaViolationEventOccurrenceRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toviolationEventOccurrenceRange(ViolationEventOccurrenceRange).- Parameters:
violationEventOccurrenceRange- a consumer that will call methods onViolationEventOccurrenceRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
violationEventOccurrenceRange(ViolationEventOccurrenceRange)
-
onlyActiveViolationsIncluded
DetectMitigationActionsTaskSummary.Builder onlyActiveViolationsIncluded(Boolean onlyActiveViolationsIncluded)
Includes only active violations.
- Parameters:
onlyActiveViolationsIncluded- Includes only active violations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suppressedAlertsIncluded
DetectMitigationActionsTaskSummary.Builder suppressedAlertsIncluded(Boolean suppressedAlertsIncluded)
Includes suppressed alerts.
- Parameters:
suppressedAlertsIncluded- Includes suppressed alerts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsDefinition
DetectMitigationActionsTaskSummary.Builder actionsDefinition(Collection<MitigationAction> actionsDefinition)
The definition of the actions.
- Parameters:
actionsDefinition- The definition of the actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsDefinition
DetectMitigationActionsTaskSummary.Builder actionsDefinition(MitigationAction... actionsDefinition)
The definition of the actions.
- Parameters:
actionsDefinition- The definition of the actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsDefinition
DetectMitigationActionsTaskSummary.Builder actionsDefinition(Consumer<MitigationAction.Builder>... actionsDefinition)
The definition of the actions.
This is a convenience method that creates an instance of theMitigationAction.Builderavoiding the need to create one manually viaMitigationAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actionsDefinition(List.) - Parameters:
actionsDefinition- a consumer that will call methods onMitigationAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actionsDefinition(java.util.Collection)
-
taskStatistics
DetectMitigationActionsTaskSummary.Builder taskStatistics(DetectMitigationActionsTaskStatistics taskStatistics)
The statistics of a mitigation action task.
- Parameters:
taskStatistics- The statistics of a mitigation action task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskStatistics
default DetectMitigationActionsTaskSummary.Builder taskStatistics(Consumer<DetectMitigationActionsTaskStatistics.Builder> taskStatistics)
The statistics of a mitigation action task.
This is a convenience method that creates an instance of theDetectMitigationActionsTaskStatistics.Builderavoiding the need to create one manually viaDetectMitigationActionsTaskStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totaskStatistics(DetectMitigationActionsTaskStatistics).- Parameters:
taskStatistics- a consumer that will call methods onDetectMitigationActionsTaskStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
taskStatistics(DetectMitigationActionsTaskStatistics)
-
-