Interface DetectMitigationActionsTaskSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DetectMitigationActionsTaskSummary.Builder,
,DetectMitigationActionsTaskSummary> SdkBuilder<DetectMitigationActionsTaskSummary.Builder,
,DetectMitigationActionsTaskSummary> SdkPojo
- Enclosing class:
DetectMitigationActionsTaskSummary
-
Method Summary
Modifier and TypeMethodDescriptionactionsDefinition
(Collection<MitigationAction> actionsDefinition) The definition of the actions.actionsDefinition
(Consumer<MitigationAction.Builder>... actionsDefinition) The definition of the actions.actionsDefinition
(MitigationAction... actionsDefinition) The definition of the actions.onlyActiveViolationsIncluded
(Boolean onlyActiveViolationsIncluded) Includes only active violations.suppressedAlertsIncluded
(Boolean suppressedAlertsIncluded) Includes suppressed alerts.Specifies the ML Detect findings to which the mitigation actions are applied.Specifies the ML Detect findings to which the mitigation actions are applied.taskEndTime
(Instant taskEndTime) The date the task ended.The unique identifier of the task.taskStartTime
(Instant taskStartTime) The date the task started.taskStatistics
(Consumer<DetectMitigationActionsTaskStatistics.Builder> taskStatistics) The statistics of a mitigation action task.taskStatistics
(DetectMitigationActionsTaskStatistics taskStatistics) The statistics of a mitigation action task.taskStatus
(String taskStatus) The status of the task.taskStatus
(DetectMitigationActionsTaskStatus taskStatus) The status of the task.violationEventOccurrenceRange
(Consumer<ViolationEventOccurrenceRange.Builder> violationEventOccurrenceRange) Specifies the time period of which violation events occurred between.violationEventOccurrenceRange
(ViolationEventOccurrenceRange violationEventOccurrenceRange) Specifies the time period of which violation events occurred between.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
-
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
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:
-
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:
-
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
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
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.Builder
avoiding the need to create one manually viaDetectMitigationActionsTaskTarget.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaViolationEventOccurrenceRange.builder()
.When the
Consumer
completes,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:
-
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
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.Builder
avoiding the need to create one manually viaMitigationAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionsDefinition(List<MitigationAction>)
.- 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:
-
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.Builder
avoiding the need to create one manually viaDetectMitigationActionsTaskStatistics.builder()
.When the
Consumer
completes,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:
-