public static class SecurityRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SecurityRule.Builder |
action(TrafficActionType action)
Types of Action on the Traffic flow.
|
SecurityRule |
build() |
SecurityRule.Builder |
condition(SecurityRuleMatchCriteria condition) |
SecurityRule.Builder |
copy(SecurityRule model) |
SecurityRule.Builder |
inspection(TrafficInspectionType inspection)
Type of inspection to affect the Traffic flow.
|
SecurityRule.Builder |
name(String name)
Name for the Security rule, must be unique within the policy.
|
SecurityRule.Builder |
parentResourceId(String parentResourceId)
OCID of the Network Firewall Policy this security rule belongs to.
|
SecurityRule.Builder |
position(RulePosition position) |
public SecurityRule.Builder name(String name)
Name for the Security rule, must be unique within the policy.
name
- the value to setpublic SecurityRule.Builder condition(SecurityRuleMatchCriteria condition)
public 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.
action
- the value to setpublic 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
.
inspection
- the value to setpublic SecurityRule.Builder position(RulePosition position)
public SecurityRule.Builder parentResourceId(String parentResourceId)
OCID of the Network Firewall Policy this security rule belongs to.
parentResourceId
- the value to setpublic SecurityRule build()
public SecurityRule.Builder copy(SecurityRule model)
Copyright © 2016–2024. All rights reserved.