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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaMitigationActionParams.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-