Class SecurityRuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.networkfirewall.model.SecurityRuleSummary.Builder
-
- Enclosing class:
- SecurityRuleSummary
public static class SecurityRuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityRuleSummary.Builder
action(TrafficActionType action)
Types of Action on the Traffic flow.SecurityRuleSummary
build()
SecurityRuleSummary.Builder
copy(SecurityRuleSummary model)
SecurityRuleSummary.Builder
inspection(TrafficInspectionType inspection)
Type of inspection to affect the Traffic flow.SecurityRuleSummary.Builder
name(String name)
Name for the Security rule, must be unique within the policy.SecurityRuleSummary.Builder
parentResourceId(String parentResourceId)
OCID of the network firewall policy this security rule belongs to.SecurityRuleSummary.Builder
priorityOrder(Long priorityOrder)
The priority order in which this rule should be evaluated.
-
-
-
Method Detail
-
name
public SecurityRuleSummary.Builder name(String name)
Name for the Security rule, must be unique within the policy.- Parameters:
name
- the value to set- Returns:
- this builder
-
action
public SecurityRuleSummary.Builder action(TrafficActionType action)
Types of Action on the Traffic flow.ALLOW - Allows the traffic. * DROP - Silently drops the traffic, e.g. without sending a TCP reset. * REJECT - Rejects the traffic, sending a TCP reset to client and/or server as applicable. * INSPECT - Inspects traffic for vulnerability as specified in inspection, which may result in rejection.
- Parameters:
action
- the value to set- Returns:
- this builder
-
inspection
public SecurityRuleSummary.Builder inspection(TrafficInspectionType inspection)
Type of inspection to affect the Traffic flow.This is only applicable if action is INSPECT.
INTRUSION_DETECTION - Intrusion Detection. * INTRUSION_PREVENTION - Intrusion Detection and Prevention. Traffic classified as potentially malicious will be rejected as described in type.
- Parameters:
inspection
- the value to set- Returns:
- this builder
-
priorityOrder
public SecurityRuleSummary.Builder priorityOrder(Long priorityOrder)
The priority order in which this rule should be evaluated.- Parameters:
priorityOrder
- the value to set- Returns:
- this builder
-
parentResourceId
public SecurityRuleSummary.Builder parentResourceId(String parentResourceId)
OCID of the network firewall policy this security rule belongs to.- Parameters:
parentResourceId
- the value to set- Returns:
- this builder
-
build
public SecurityRuleSummary build()
-
copy
public SecurityRuleSummary.Builder copy(SecurityRuleSummary model)
-
-