Interface CreateMitigationActionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMitigationActionRequest.Builder,
,CreateMitigationActionRequest> IotRequest.Builder
,SdkBuilder<CreateMitigationActionRequest.Builder,
,CreateMitigationActionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMitigationActionRequest
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) A friendly name for the action.actionParams
(Consumer<MitigationActionParams.Builder> actionParams) Defines the type of action and the parameters for that action.actionParams
(MitigationActionParams actionParams) Defines the type of action and the parameters for that action.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ARN of the IAM role that is used to apply the mitigation action.tags
(Collection<Tag> tags) Metadata that can be used to manage the mitigation action.tags
(Consumer<Tag.Builder>... tags) Metadata that can be used to manage the mitigation action.Metadata that can be used to manage the mitigation action.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
-
actionName
A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).- Parameters:
actionName
- A friendly name for the action. Choose a friendly name that accurately describes the action (for example,EnableLoggingAction
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The ARN of the IAM role that is used to apply the mitigation action.
- Parameters:
roleArn
- The ARN of the IAM role that is used to apply the mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionParams
Defines the type of action and the parameters for that action.
- Parameters:
actionParams
- Defines the type of action and the parameters for that action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionParams
default CreateMitigationActionRequest.Builder actionParams(Consumer<MitigationActionParams.Builder> actionParams) Defines the type of action and the parameters for that action.
This is a convenience method that creates an instance of theMitigationActionParams.Builder
avoiding the need to create one manually viaMitigationActionParams.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionParams(MitigationActionParams)
.- Parameters:
actionParams
- a consumer that will call methods onMitigationActionParams.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Metadata that can be used to manage the mitigation action.
- Parameters:
tags
- Metadata that can be used to manage the mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata that can be used to manage the mitigation action.
- Parameters:
tags
- Metadata that can be used to manage the mitigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata that can be used to manage the mitigation action.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateMitigationActionRequest.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
CreateMitigationActionRequest.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.
-