Class CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.securityagent.CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPentestPropsMixin.NetworkTrafficRuleProperty>
- Enclosing interface:
CfnPentestPropsMixin.NetworkTrafficRuleProperty
@Stability(Stable)
public static final class CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPentestPropsMixin.NetworkTrafficRuleProperty>
A builder for
CfnPentestPropsMixin.NetworkTrafficRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPentestPropsMixin.NetworkTrafficRuleProperty.getEffect()networkTrafficRuleType(String networkTrafficRuleType) Sets the value ofCfnPentestPropsMixin.NetworkTrafficRuleProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
effect
@Stability(Stable) public CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder effect(String effect) Sets the value ofCfnPentestPropsMixin.NetworkTrafficRuleProperty.getEffect()- Parameters:
effect- the value to be set.- Returns:
this
-
networkTrafficRuleType
@Stability(Stable) public CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder networkTrafficRuleType(String networkTrafficRuleType) - Parameters:
networkTrafficRuleType- the value to be set.- Returns:
this
-
pattern
@Stability(Stable) public CfnPentestPropsMixin.NetworkTrafficRuleProperty.Builder pattern(String pattern) Sets the value ofCfnPentestPropsMixin.NetworkTrafficRuleProperty.getPattern()- Parameters:
pattern- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPentestPropsMixin.NetworkTrafficRuleProperty>- Returns:
- a new instance of
CfnPentestPropsMixin.NetworkTrafficRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-