Class CfnFirewallPolicy.CustomActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.CustomActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallPolicy.CustomActionProperty>
- Enclosing interface:
CfnFirewallPolicy.CustomActionProperty
@Stability(Stable)
public static final class CfnFirewallPolicy.CustomActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewallPolicy.CustomActionProperty>
A builder for
CfnFirewallPolicy.CustomActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionDefinition
(IResolvable actionDefinition) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionDefinition()
actionDefinition
(CfnFirewallPolicy.ActionDefinitionProperty actionDefinition) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionDefinition()
actionName
(String actionName) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionName()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionDefinition
@Stability(Stable) public CfnFirewallPolicy.CustomActionProperty.Builder actionDefinition(IResolvable actionDefinition) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionDefinition()
- Parameters:
actionDefinition
- The custom action associated with the action name. This parameter is required.- Returns:
this
-
actionDefinition
@Stability(Stable) public CfnFirewallPolicy.CustomActionProperty.Builder actionDefinition(CfnFirewallPolicy.ActionDefinitionProperty actionDefinition) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionDefinition()
- Parameters:
actionDefinition
- The custom action associated with the action name. This parameter is required.- Returns:
this
-
actionName
@Stability(Stable) public CfnFirewallPolicy.CustomActionProperty.Builder actionName(String actionName) Sets the value ofCfnFirewallPolicy.CustomActionProperty.getActionName()
- Parameters:
actionName
- The descriptive name of the custom action. This parameter is required. You can't change the name of a custom action after you create it.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFirewallPolicy.CustomActionProperty>
- Returns:
- a new instance of
CfnFirewallPolicy.CustomActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-