Class SecurityRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.networkfirewall.model.SecurityRule.Builder
 
- 
- Enclosing class:
- SecurityRule
 
 public static class SecurityRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityRule.Builderaction(TrafficActionType action)Types of Action on the Traffic flow.SecurityRulebuild()SecurityRule.Buildercondition(SecurityRuleMatchCriteria condition)SecurityRule.Buildercopy(SecurityRule model)SecurityRule.Builderinspection(TrafficInspectionType inspection)Type of inspection to affect the Traffic flow.SecurityRule.Buildername(String name)Name for the Security rule, must be unique within the policy.SecurityRule.BuilderparentResourceId(String parentResourceId)OCID of the Network Firewall Policy this security rule belongs to.SecurityRule.Builderposition(RulePosition position)
 
- 
- 
- 
Method Detail- 
namepublic SecurityRule.Builder name(String name) Name for the Security rule, must be unique within the policy.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
conditionpublic SecurityRule.Builder condition(SecurityRuleMatchCriteria condition) 
 - 
actionpublic SecurityRule.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
 
 - 
inspectionpublic SecurityRule.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
 
 - 
positionpublic SecurityRule.Builder position(RulePosition position) 
 - 
parentResourceIdpublic SecurityRule.Builder parentResourceId(String parentResourceId) OCID of the Network Firewall Policy this security rule belongs to.- Parameters:
- parentResourceId- the value to set
- Returns:
- this builder
 
 - 
buildpublic SecurityRule build() 
 - 
copypublic SecurityRule.Builder copy(SecurityRule model) 
 
- 
 
-