Interface StartDetectMitigationActionsTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartDetectMitigationActionsTaskRequest.Builder,
,StartDetectMitigationActionsTaskRequest> IotRequest.Builder
,SdkBuilder<StartDetectMitigationActionsTaskRequest.Builder,
,StartDetectMitigationActionsTaskRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartDetectMitigationActionsTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe actions to be performed when a device has unexpected behavior.actions
(Collection<String> actions) The actions to be performed when a device has unexpected behavior.clientRequestToken
(String clientRequestToken) Each mitigation action task must have a unique client request token.includeOnlyActiveViolations
(Boolean includeOnlyActiveViolations) Specifies to list only active violations.includeSuppressedAlerts
(Boolean includeSuppressedAlerts) Specifies to include suppressed alerts.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies the ML Detect findings to which the mitigation actions are applied.Specifies the ML Detect findings to which the mitigation actions are applied.The unique identifier 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.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
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.
-
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 StartDetectMitigationActionsTaskRequest.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:
-
actions
The actions to be performed when a device has unexpected behavior.
- Parameters:
actions
- The actions to be performed when a device has unexpected behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to be performed when a device has unexpected behavior.
- Parameters:
actions
- The actions to be performed when a device has unexpected behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
violationEventOccurrenceRange
StartDetectMitigationActionsTaskRequest.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 StartDetectMitigationActionsTaskRequest.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:
-
includeOnlyActiveViolations
StartDetectMitigationActionsTaskRequest.Builder includeOnlyActiveViolations(Boolean includeOnlyActiveViolations) Specifies to list only active violations.
- Parameters:
includeOnlyActiveViolations
- Specifies to list only active violations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeSuppressedAlerts
StartDetectMitigationActionsTaskRequest.Builder includeSuppressedAlerts(Boolean includeSuppressedAlerts) Specifies to include suppressed alerts.
- Parameters:
includeSuppressedAlerts
- Specifies to include suppressed alerts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
- Parameters:
clientRequestToken
- Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartDetectMitigationActionsTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartDetectMitigationActionsTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-