@Generated(value="OracleSDKGenerator", comments="API Version: 20211001") public final class SecurityRule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Security Rule used in the firewall policy rules. Security Rules determine whether to block or
allow a session based on traffic attributes, such as the source and destination IP address,
protocol/port, and the HTTP(S) target URL.
Note: Objects should always be created or deserialized using the SecurityRule.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the SecurityRule.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
SecurityRule.Action
Types of Action on the Traffic flow.
|
static class |
SecurityRule.Builder |
static class |
SecurityRule.Inspection
Type of inspection to affect the Traffic flow.
|
Constructor and Description |
---|
SecurityRule(String name,
SecurityRuleMatchCriteria condition,
SecurityRule.Action action,
SecurityRule.Inspection inspection)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SecurityRule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
SecurityRule.Action |
getAction()
Types of Action on the Traffic flow.
|
SecurityRuleMatchCriteria |
getCondition() |
SecurityRule.Inspection |
getInspection()
Type of inspection to affect the Traffic flow.
|
String |
getName()
Name for the Security rule, must be unique within the policy.
|
int |
hashCode() |
SecurityRule.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","condition","action","inspection"}) public SecurityRule(String name, SecurityRuleMatchCriteria condition, SecurityRule.Action action, SecurityRule.Inspection inspection)
public static SecurityRule.Builder builder()
Create a new builder.
public SecurityRule.Builder toBuilder()
public String getName()
Name for the Security rule, must be unique within the policy.
public SecurityRuleMatchCriteria getCondition()
public SecurityRule.Action getAction()
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.
public SecurityRule.Inspection getInspection()
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
.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.