Interface CreateMitigationActionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMitigationActionRequest.Builder,CreateMitigationActionRequest>
,IotRequest.Builder
,SdkBuilder<CreateMitigationActionRequest.Builder,CreateMitigationActionRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateMitigationActionRequest
public static interface CreateMitigationActionRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateMitigationActionRequest.Builder,CreateMitigationActionRequest>
-
-
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
-
actionName
CreateMitigationActionRequest.Builder actionName(String 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
CreateMitigationActionRequest.Builder roleArn(String 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
CreateMitigationActionRequest.Builder actionParams(MitigationActionParams 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:
actionParams(MitigationActionParams)
-
tags
CreateMitigationActionRequest.Builder tags(Collection<Tag> 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
CreateMitigationActionRequest.Builder tags(Tag... 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
CreateMitigationActionRequest.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
overrideConfiguration
CreateMitigationActionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateMitigationActionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-