Interface SecurityGroupRemediationAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SecurityGroupRemediationAction.Builder,
,SecurityGroupRemediationAction> SdkBuilder<SecurityGroupRemediationAction.Builder,
,SecurityGroupRemediationAction> SdkPojo
- Enclosing class:
SecurityGroupRemediationAction
public static interface SecurityGroupRemediationAction.Builder
extends SdkPojo, CopyableBuilder<SecurityGroupRemediationAction.Builder,SecurityGroupRemediationAction>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Brief description of the action that will be performed.isDefaultAction
(Boolean isDefaultAction) Indicates if the current action is the default action.remediationActionType
(String remediationActionType) The remediation action that will be performed.remediationActionType
(RemediationActionType remediationActionType) The remediation action that will be performed.remediationResult
(Consumer<SecurityGroupRuleDescription.Builder> remediationResult) The final state of the rule specified in theViolationTarget
after it is remediated.remediationResult
(SecurityGroupRuleDescription remediationResult) The final state of the rule specified in theViolationTarget
after it is remediated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
remediationActionType
The remediation action that will be performed.
- Parameters:
remediationActionType
- The remediation action that will be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
remediationActionType
SecurityGroupRemediationAction.Builder remediationActionType(RemediationActionType remediationActionType) The remediation action that will be performed.
- Parameters:
remediationActionType
- The remediation action that will be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
Brief description of the action that will be performed.
- Parameters:
description
- Brief description of the action that will be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediationResult
SecurityGroupRemediationAction.Builder remediationResult(SecurityGroupRuleDescription remediationResult) The final state of the rule specified in the
ViolationTarget
after it is remediated.- Parameters:
remediationResult
- The final state of the rule specified in theViolationTarget
after it is remediated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediationResult
default SecurityGroupRemediationAction.Builder remediationResult(Consumer<SecurityGroupRuleDescription.Builder> remediationResult) The final state of the rule specified in the
This is a convenience method that creates an instance of theViolationTarget
after it is remediated.SecurityGroupRuleDescription.Builder
avoiding the need to create one manually viaSecurityGroupRuleDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremediationResult(SecurityGroupRuleDescription)
.- Parameters:
remediationResult
- a consumer that will call methods onSecurityGroupRuleDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isDefaultAction
Indicates if the current action is the default action.
- Parameters:
isDefaultAction
- Indicates if the current action is the default action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-