Class GuardDutyFinding.NetworkConnectionAction.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.NetworkConnectionAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.NetworkConnectionAction>
- Enclosing interface:
GuardDutyFinding.NetworkConnectionAction
@Stability(Experimental)
public static final class GuardDutyFinding.NetworkConnectionAction.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.NetworkConnectionAction>
A builder for
GuardDutyFinding.NetworkConnectionAction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofGuardDutyFinding.NetworkConnectionAction.getBlocked()build()Builds the configured instance.connectionDirection(List<String> connectionDirection) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getConnectionDirection()localIpDetails(GuardDutyFinding.LocalIpDetails localIpDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getLocalIpDetails()localPortDetails(GuardDutyFinding.LocalPortDetails localPortDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getLocalPortDetails()Sets the value ofGuardDutyFinding.NetworkConnectionAction.getProtocol()remoteIpDetails(GuardDutyFinding.RemoteIpDetails3 remoteIpDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getRemoteIpDetails()remotePortDetails(GuardDutyFinding.RemotePortDetails remotePortDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getRemotePortDetails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blocked
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder blocked(List<String> blocked) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getBlocked()- Parameters:
blocked- blocked property. Specify an array of string values to match this event if the actual value of blocked is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
connectionDirection
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder connectionDirection(List<String> connectionDirection) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getConnectionDirection()- Parameters:
connectionDirection- connectionDirection property. Specify an array of string values to match this event if the actual value of connectionDirection is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
localIpDetails
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder localIpDetails(GuardDutyFinding.LocalIpDetails localIpDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getLocalIpDetails()- Parameters:
localIpDetails- localIpDetails property. Specify an array of string values to match this event if the actual value of localIpDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
localPortDetails
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder localPortDetails(GuardDutyFinding.LocalPortDetails localPortDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getLocalPortDetails()- Parameters:
localPortDetails- localPortDetails property. Specify an array of string values to match this event if the actual value of localPortDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
protocol
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder protocol(List<String> protocol) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getProtocol()- Parameters:
protocol- protocol property. Specify an array of string values to match this event if the actual value of protocol is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
remoteIpDetails
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder remoteIpDetails(GuardDutyFinding.RemoteIpDetails3 remoteIpDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getRemoteIpDetails()- Parameters:
remoteIpDetails- remoteIpDetails property. Specify an array of string values to match this event if the actual value of remoteIpDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
remotePortDetails
@Stability(Experimental) public GuardDutyFinding.NetworkConnectionAction.Builder remotePortDetails(GuardDutyFinding.RemotePortDetails remotePortDetails) Sets the value ofGuardDutyFinding.NetworkConnectionAction.getRemotePortDetails()- Parameters:
remotePortDetails- remotePortDetails property. Specify an array of string values to match this event if the actual value of remotePortDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GuardDutyFinding.NetworkConnectionAction>- Returns:
- a new instance of
GuardDutyFinding.NetworkConnectionAction - Throws:
NullPointerException- if any required attribute was not provided
-