Interface StartDetectMitigationActionsTaskRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartDetectMitigationActionsTaskRequest.Builder,StartDetectMitigationActionsTaskRequest>
,IotRequest.Builder
,SdkBuilder<StartDetectMitigationActionsTaskRequest.Builder,StartDetectMitigationActionsTaskRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- StartDetectMitigationActionsTaskRequest
public static interface StartDetectMitigationActionsTaskRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<StartDetectMitigationActionsTaskRequest.Builder,StartDetectMitigationActionsTaskRequest>
-
-
Method Summary
-
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 Detail
-
taskId
StartDetectMitigationActionsTaskRequest.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.
-
target
StartDetectMitigationActionsTaskRequest.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 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:
target(DetectMitigationActionsTaskTarget)
-
actions
StartDetectMitigationActionsTaskRequest.Builder actions(Collection<String> 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
StartDetectMitigationActionsTaskRequest.Builder actions(String... 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:
violationEventOccurrenceRange(ViolationEventOccurrenceRange)
-
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
StartDetectMitigationActionsTaskRequest.Builder clientRequestToken(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
StartDetectMitigationActionsTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-