Interface StartAuditMitigationActionsTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartAuditMitigationActionsTaskRequest.Builder,
,StartAuditMitigationActionsTaskRequest> IotRequest.Builder
,SdkBuilder<StartAuditMitigationActionsTaskRequest.Builder,
,StartAuditMitigationActionsTaskRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartAuditMitigationActionsTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptionauditCheckToActionsMapping
(Map<String, ? extends Collection<String>> auditCheckToActionsMapping) For an audit check, specifies which mitigation actions to apply.clientRequestToken
(String clientRequestToken) Each audit mitigation task must have a unique client request token.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies the audit findings to which the mitigation actions are applied.Specifies the audit findings to which the mitigation actions are applied.A unique identifier for the task.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
A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.
- Parameters:
taskId
- A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
- Parameters:
target
- Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
default StartAuditMitigationActionsTaskRequest.Builder target(Consumer<AuditMitigationActionsTaskTarget.Builder> target) Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
This is a convenience method that creates an instance of theAuditMitigationActionsTaskTarget.Builder
avoiding the need to create one manually viaAuditMitigationActionsTaskTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(AuditMitigationActionsTaskTarget)
.- Parameters:
target
- a consumer that will call methods onAuditMitigationActionsTaskTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
auditCheckToActionsMapping
StartAuditMitigationActionsTaskRequest.Builder auditCheckToActionsMapping(Map<String, ? extends Collection<String>> auditCheckToActionsMapping) For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.
- Parameters:
auditCheckToActionsMapping
- For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.
- Parameters:
clientRequestToken
- Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartAuditMitigationActionsTaskRequest.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
StartAuditMitigationActionsTaskRequest.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.
-